SpringBoot整合Redis,RedisConfig启动出错ror creating bean with name ‘redisTemplate‘ defined in class path

这里记录一下

因为是测试项目,项目内没有加web依赖,所以启动就报错了。
百度搜都是加什么common,jedis依赖…
误打误撞加了web依赖就解决了

<dependency>
   	<groupId>org.springframework.boot</groupId>
   	<artifactId>spring-boot-starter-web</artifactId>
</dependency>

猜你喜欢

转载自blog.csdn.net/qq_41806966/article/details/129510772