application.xml中有没有引用<import>??

解决方案 »

  1.   

    解决了, sping集成cxf的时候注入sping管理的bean的时候比如说service层,用annotation标注了@Service在xml中注入的时候<bean id="dvrService" class="com.zhaohai.automation.device.webservice.DvrServiceImpl">
         <property name="accountManager">
     <ref bean="accountManagerImpl"/>
         </property>
    </bean>只需要<ref bean="accountManagerImpl"/> 应为用annotation注解spring默认将实现类命名为首字母开头的类名称的bean