1. The following is the situation of the spring-boot-starter-data-redis jar package when the Spring Boot version is 1.5.9:
2. The following is the situation of the spring-boot-starter-data-redis jar package when the Spring Boot version is 1.4.0:
3. The following is the situation of the spring-boot-starter-redis jar package when the Spring Boot version is 1.4.0:
It can be seen that there is no difference between the two packages, just the difference in version.
However, when springBoot version is 1.4.7 or higher, spring-boot-starter-redis is empty. If you want to introduce redis, you can only choose the one with data.
Let's take a look at the situation when SpringBoot version is 1.4.7:
After certification, when the version number of spring boot is 1.5.0, the jar package cannot be found when spring-boot-starter-reids is added, that is, the jar package is directly discarded. So be careful: if your spring boot version number is after 1.5.0, the jar package to add redis must be spring-boot-starter-data-redis.
Another point to mention here is:
After the version number of Spring Boot is 1.4.0, there is a jar package for spring-boot-starter-data-redis。。 That is, change the jar package of spring-boot-starter-redis to the spring-boot-starter-data-redis jar package...
To sum it up:
If your Spring Boot version number is between 1.4.0 and 1.5.0, you can add the jar package of Redis as spring-boot-starter-data-redis and spring-boot-starter-redis when adding the jar package.
However, if your Spring Boot version number is before 1.4.0, that is, before version 1.3.8, the jar package that added redis must be the jar package for spring-boot-starter-redis.
Transferred from:The hyperlink login is visible.
|