org.springframework.boot.autoconfigure.data.redis.Redis"/>
Parameter 0 of method stringRedisTemplate in org.springframework.boot.autoconfigure.data.redis.Redis
报错信息"Parameter 0 of method stringRedisTemplate in org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration required a bean of type 'org.springframework.data.redis.connection.RedisConnec"
Action:
Consider revisiting the entries above or defining a bean of type ‘org.springframework.data.redis.connection.RedisConnectionFactory’ in your configuration.
将pom文件里的redis依赖换成
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-redis</artifactId> </dependency>
更多推荐
Parameter 0 of method stringRedisTemplate in org.springframework.boot.autoconfig
发布评论