在weblogic上部署项目报错
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'erpOracleController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.herysoft.expertsys.erp.dao.MaterialDicDao org.herysoft.expertsys.erp.controller.ErpOracleController.materialDicDao; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.herysoft.expertsys.erp.dao.MaterialDicDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
Spring配置文件中声明的这个controller没有绑定成功
<beans:bean id="erpOracleController" class="org.herysoft.expertsys.erp.controller.ErpOracleController" >
</beans:bean>
而在tomcat下是可以用的,为什么