xfire spring注入失败 注入baseDAO失败,如图xfire springwebservicexfire 注入 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 @Transactionalpublic class OhShitWebServiceImpl extends OhShitBaseServiceImpl implements OhShitWebService { @Resource private UserDAO userDAO; @Resource InitService initService; @Resource private SessionFactory sessionFactory; @Resource ServletContext servletContext; @Resource LoginService loginService;配置:<bean id="OhShitWebServiceImpl" class="org.ohshit.common.xfire.webserviceimpl.OhShitWebServiceImpl" /> <bean id="getDbWS" class="org.codehaus.xfire.spring.ServiceBean"> <property name="serviceBean" ref="OhShitWebServiceImpl" /> <property name="serviceClass" value="org.ohshit.common.xfire.webservice.OhShitWebService" /> <property name="inHandlers"> <list> <ref bean="addressingHandler" /> </list> </property> </bean> <bean id="addressingHandler" class="org.codehaus.xfire.addressing.AddressingInHandler" /> <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:applicationContext.xml,classpath:org/codehaus/xfire/spring/xfire.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> tomcat servlet 404 错误 utf-8乱码,求助 想读一些优秀的java源代码,能否推荐一下 jms怎么与servlet实现交互 求助 各位大虾帮我看一下我的正则表达式,很急,谢谢各位了。。。 请教大家一个问题:关于java读取C++ win32控制台程序并且获取控制台的输出内容。 J2EE 1.4标准教材(第二版)(The J2EE Tutorial Second Edition)这本书怎么样?? 在Hibernate中使用数据库连接池找不到JNDI IDEA中快捷键如何将接口与实现类中的方法统一 非常无解,并发测试报IO异常。 自定义标签库用的多么?
@Transactional
public class OhShitWebServiceImpl extends OhShitBaseServiceImpl implements OhShitWebService {
@Resource
private UserDAO userDAO;
@Resource
InitService initService;
@Resource
private SessionFactory sessionFactory;
@Resource
ServletContext servletContext;
@Resource
LoginService loginService;
配置:
<bean id="OhShitWebServiceImpl" class="org.ohshit.common.xfire.webserviceimpl.OhShitWebServiceImpl" />
<bean id="getDbWS" class="org.codehaus.xfire.spring.ServiceBean">
<property name="serviceBean" ref="OhShitWebServiceImpl" />
<property name="serviceClass" value="org.ohshit.common.xfire.webservice.OhShitWebService" />
<property name="inHandlers">
<list>
<ref bean="addressingHandler" />
</list>
</property>
</bean>
<bean id="addressingHandler" class="org.codehaus.xfire.addressing.AddressingInHandler" />
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml,classpath:org/codehaus/xfire/spring/xfire.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>