Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'epAtreusEquipmentInfoServiceImpl': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'redisService' is expected to be of type 'com.xiaojukeji.epower.atreus.biz.service.redis.ConnectorRedisService' but was actually of type 'com.xiaojukeji.epower.direct.core.service.RedisService'
Background of abnormal occurrence:
@Autowired private RedisService redisService;
@Resource private ConnectorRedisService redisService;
If the above names appear at the same time, an error will be reported
If you change to this, no error will be reported, or the genus name is not the same.
@Autowired private ConnectorRedisService redisService;
Similar Posts:
- factory.NoSuchBeanDefinitionException: No qualifying bean of type
- [Solved] expected single matching bean but found 2
- [Solved] SpringbootExpection 1: Error creating bean with name ‘xxxImpl’: Unsatisfied dependency expressed through field
- How to Solve the login error of Spring + Shiro CacheManager
- [Solved] org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type
- Context initialization failed — solution
- [Solved] Springboot Use Redis Error: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘redisTemplate’ defined in class path resource
- [Solved] No qualifying bean of type ‘org.springframework.boot.orm.jpa.EntityManagerFactoryBuilder’ available:
- Cannot resolve reference to bean ‘entityManagerFactory’ while setting constructor argument
- org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘com.southwind.mmall002.service.Impl.ProductCategoryServiceImplTest’: