xfire spring注入失败
注入baseDAO失败,如图 xfire spring webservice xfire 注入 --------------------编程问答--------------------
@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>
--------------------编程问答-------------------- 好像不行呢,我就是这么弄得,能加个qq帮我看下吗?谢谢 --------------------编程问答-------------------- 方便的话加个qq:1205988825 谢谢
补充:Java , Java EE