This article is a mirror article of machine translation, please click here to jump to the original article.

View: 31851|Reply: 0

[Source] The difference between spring-boot-starter-data-redis and spring-boot-starter-redis is the same

[Copy link]
Posted on 5/26/2021 3:38:27 PM | | | |
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.




Previous:ddl-auto attribute of hibernate
Next:Difference between CrudRepository and JpaRepository in Spring Data JPA
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com