Error creating bean with name 'assetQueryController': Injection of autowired dependencies failed; ne
2017-08-19 15:38
567 查看
启动tomcat出现一下错误:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘assetQueryController’: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.ffcs.crmd.intf.api.facade.ICrmdToCrmFacade com.ffcs.crmd.asset.control.AssetQueryController.crmdToCrmFacade; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.ffcs.crmd.intf.api.facade.ICrmdToCrmFacade] 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)}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
百度解释:原因一般是在autowire时,找不到相应的类,上述问题是因为XXXXX的实现类中没有加相应的注解。如dao层 @Repository 如service层 @Service
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘assetQueryController’: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.ffcs.crmd.intf.api.facade.ICrmdToCrmFacade com.ffcs.crmd.asset.control.AssetQueryController.crmdToCrmFacade; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.ffcs.crmd.intf.api.facade.ICrmdToCrmFacade] 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)}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
百度解释:原因一般是在autowire时,找不到相应的类,上述问题是因为XXXXX的实现类中没有加相应的注解。如dao层 @Repository 如service层 @Service
相关文章推荐
- Error creating bean with name 'adminUserController': Injection of autowired dependencies failed;
- Error creating bean with name 'xxxx': Injection of autowired dependencies failed;
- Java-4-解决报错:Error creating bean with name 'globalAppObj': Injection of autowired dependencies failed
- spring问题:Error creating bean with name 'articleController': Injection of autowired dependencies fail
- bean依赖注入错误:Error creating bean with name 'itemService': Injection of autowired dependencies failed
- Error creating bean with name 'xx': Injection of autowired dependencies failed
- Error creating bean with name 'userServiceImpl': Injection of autowired dependencies failed
- Error creating bean with name '***(类名)': Injection of autowired dependencies failed;
- Error creating bean with name 'userServiceImpl': Injection of autowired dependencies failed
- Error creating bean with name 'contentTypeAdminController': Injection of autowired dependencies fail
- Error creating bean with name 'roleServiceImpl': Injection of autowired dependencies failed;
- rror creating bean with name 'adminController': Injection of autowired dependencies failed;
- Error creating bean with name 'XXX': Injection of autowired dependencies failed解决办法
- Error creating bean with name '****': Injection of autowired dependencies failed
- 【SPRINGMVC】Error creating bean with name 'projectController': Injection of autowired dependencies
- Error creating bean with name 'menuController': Injection of autowired dependency……
- Error creating bean with name 'menuController': Injection of autowired dependenc
- Error creating bean with name 'menuController': Injection of autowired dependency……
- Error creating bean with name 'menuController' Injection of autowired dependency…
- spring boot 报错 Error creating bean with name 'indexController': Injection of autowired dependencies