When integrated springboot redis, incorporated springboot-starter-redis packet error, maven this resource can not be found in the following figure:
I project, spring boot is a version of 2.0.4. Springboot-Starter-Redis after springboot 1.4.7 version, instead of springboot-starter-data-redis,
So if you want integration redis, reference should be spring-boot-starter-data-redis.
If you just want to use the former, then it should be added to the version number.
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-redis</artifactId> <version>1.4.7.RELEASE</version> </dependency>