java 紧急问题,不知道要怎么解决,明天就要上交了

[ERROR]DispatcherServlet-Contextinitializationfailed<org.springframework.beans.factor... [ERROR] DispatcherServlet - Context initialization failed <org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'APIController': Unsatisfied dependency expressed through field 'apiExecuter'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'apiExecuter': Unsatisfied dependency expressed through field 'apiManager'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'apiManager': Unsatisfied dependency expressed through field 'spotFileUploadAllAPIServiceImpl'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'spotFileUploadAllAPIServiceImpl': Unsatisfied dependency expressed through field 'ooHAPPAndroidVersionInfoDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'oohAPPAndroidVersionInfoDao' defined in URL [jar:file:/D:/java/apache-maven-3.2.5/repr/com/dentsuaegis/ooh-monitor-dao-common/1.0.0/ooh-monitor-dao-common-1.0.0.jar!/com/dentsuaegis/dao/common/dao/impl/OOHAPPAndroidVersionInfoDaoImpl.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: 'sessionFactory' or 'hibernateTemplate' is required>org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'APIController': Unsatisfied dependency expressed through field 'apiExecuter'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'apiExecuter': Unsatisfied dependency expressed through field 'apiManager'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'apiManager': Unsatisfied dependency expressed through field 'spotFileUploadAllAPIServiceImpl'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'spotFileUploadAllAPIServiceImpl': Unsatisfied dependency expressed through field 'ooHAPPAndroidVersionInfoDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'oohAPPAndroidVersionInfoDao' defined in URL [jar:file:/D:/java/apache-maven-3.2.5/repr/com/dentsuaegis/ooh-monitor-dao-common/1.0.0/ooh-monitor-dao-common-1.0.0.jar!/com/dentsuaegis/dao/common/dao/impl/OOHAPPAndroidVersionInfoDaoImpl.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: 'sessionFactory' or 'hibernateTemplate' is required
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:569)
展开
 我来答
有坑必踩
2018-05-10 · 超过38用户采纳过TA的回答
知道小有建树答主
回答量:157
采纳率:50%
帮助的人:108万
展开全部
hibernate没有搜迟配置吧。错误提示'世盯李则洞sessionFactory' or 'hibernateTemplate' is required。
追问

有配置

,我这个项目是属于二次开发,

使用@Autowired就会报这个错误,而不加就不会,而之前开发的使用@Autowired没有问题

推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式