weblogic 12.1.3部署web项目报错

在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下是可以用的,为什么

1个回答

springjar没来起

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问