No qualifying bean of type [RedisTemplate] found for dependency
maven项目启动抛异常,登录页面能够正常打开,但是验证码的图片不显示。
异常:
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.data.redis.core.RedisTemplate] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {
@javax.annotation.Resource(shareable=true, lookup=, name=, description=, authenticationType=CONTAINER,<