Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [redis.clients.jedis.JedisPool] 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)}
自己工作中遇到的一些个异常,总结出来,让小伙伴们少走弯路
异常信息:扫描资源找不到,无法注入
解决办法:1.service实现类上面没加@Service 注解,需要交给spring管理
2.如果是面向服务式架构,且使用了dubbo服务中间件,应该去你的配置文件中找,看是否发布服务
<dubbo:service interface="cn.service.XXXService" ref="XXXServiceImpl" />
<bean id="XXXCategoryImpl" class="cn.service.impl.XXXCategoryImpl"></bean>
3.如果是注入拼写错误.........