Spring security 考虑定义一个类型的豆和*x27;org.springframework.data.redis.connection.RedisConnectionFactory';在您的配置中
我尝试使用spring会话,并从git下载这个项目 我得到了这个错误 应用程序无法启动Spring security 考虑定义一个类型的豆和*x27;org.springframework.data.redis.connection.RedisConnectionFactory';在您的配置中,spring-security,spring-session,spring-data-redis,Spring Security,Spring Session,Spring Data Redis,我尝试使用spring会话,并从git下载这个项目 我得到了这个错误 应用程序无法启动 说明: org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration中方法sessionRedisTemplate的参数0需要找不到类型为“org.springframework.data.redis.connection.RedisConnectionFactory”的bea
说明: org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration中方法sessionRedisTemplate的参数0需要找不到类型为“org.springframework.data.redis.connection.RedisConnectionFactory”的bean 行动:
考虑在配置中定义类型为“org.springframework.data.redis.connection.RedisConnectionFactory”的bean。该错误具有误导性。您缺少一些依赖项
compile 'redis.clients:jedis'
compile 'org.apache.commons:commons-pool2'
如果有人面临springboot的问题,可能是pom.xml中缺少以下依赖项
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
org.springframework.boot
spring启动程序数据redis
这种缺失的依赖性使我误解了问题中的错误