Spring Boot Redis Version issue

Source: Internet
Author: User
Tags redis version

the video & Communication Platform "

à springboot netease Cloud Classroom video

http://study.163.com/course/introduction.htm?courseId=1004329008

à Spring Boot communication platform

http://412887952-qq-com.iteye.com/blog/2321532

The origin of demand:

in the blog "35.Spring Boot integrated Redis implementation caching mechanism" starting from scratch to learn Spring Boot "

There are users message :

with this one, not even . redistemplate

<dependency> <groupId>org.springframework.boot</groupId> <artifactid>spring-bo Ot-starter-redis</artifactid> </dependency>

The last one to use is the following.

<dependency> <groupId>org.springframework.boot</groupId> <artifactid>spring-b Oot-starter-data-redis</artifactid> </dependency>


This is the blogger distracted, this blog is revealed whether bloggers sleep when they write blog.

Error generation:

Using the 1.5 version of Redis can not be successful, automatically downloaded to the local Maven library is also a "unknown" folder, using 1.3, 1.4 of the OK ..., as follows the configuration method:

<dependency> <groupId>org.springframework.boot</groupId> <artifactid>spring-boot-start Er-redis</artifactid></dependency>


This configuration will not work with Redis in the 1.5+ version. In the 1.4 release of the update log, there is a description:

Renamed Starters

the Followingstarters has been renamed, the old ones would be removed in Spring Boot 1.5
    • spring-boot-starter-wsspring-boot-starter-web-services

    • spring-boot-starter-redisspring-boot-starter-data-redis

The above general meaning is: The following starters has been re-ordered, the old version in 1.5 will be removed.

How to use:

When using a version prior to 1.4 (including version 1.4), use the following configuration:

<dependency> <groupId>org.springframework.boot</groupId> <artifactid>spring-boot-start Er-redis</artifactid></dependency>


When using the version of 1.5+, use the following configuration:

<dependency> <groupId>org.springframework.boot</groupId> <artifactid>spring-boot-start Er-data-redis</artifactid></dependency>


It is important to note that the 1.4 version is a transitional version, so when you use the Spring boot version of 1.4.x, it is possible to use either of the above methods, and the official new configuration method is recommended.


This article is from the "11132439" blog, please be sure to keep this source http://11142439.blog.51cto.com/11132439/1977936

Spring Boot Redis Version issue

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.