Quantcast
Channel: Problem in configuring spring boot and redis - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Answer by jordiburgos for Problem in configuring spring boot and redis

$
0
0

Spring Boot parent pom already defines the versions of the starters, so remove the version from spring-boot-starter-data-redis dependency.

Your pom.xml would have at least these dependencies.

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>1.5.10.RELEASE</version>
    <type>pom</type>
</dependency>

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>

Next, @EnableCaching will look for beans with @Cacheable or @CachePut annotations.


Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>