springboot集成redis时,引入spring-boot-starter-redis包报错,maven找不到这个资源.如下图:
我的项目中,spring boot是 用的2.0.4版本.spring-boot-starter-redis在springboot 1.4.7版本后,改为了spring-boot-starter-data-redis,
所以如果想集成redis,应该引用spring-boot-starter-data-redis.
如果就是想用前者,那么就应该加上版本号.
springboot集成redis时,引入spring-boot-starter-redis包报错,maven找不到这个资源.如下图:
我的项目中,spring boot是 用的2.0.4版本.spring-boot-starter-redis在springboot 1.4.7版本后,改为了spring-boot-starter-data-redis,
所以如果想集成redis,应该引用spring-boot-starter-data-redis.
如果就是想用前者,那么就应该加上版本号.
上一篇:一些常用的 redis 的操作配置(对String、hash)
下一篇:解决:javax.servlet.ServletException: Circular view path []: would dispatch back to the current....
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M