I am trying to use spring-data-redis in a spring-boot application to work with redis. I am creating JedisConnectionFactory
as follows:
RedisStandalo
You need to update your spring-boot version to 2.0.0+.
dependencies {
compile('org.springframework.data:spring-data-redis:2.0.2.RELEASE')
compile('redis.clients:jedis:2.9.0')
compile('org.json:json:20160810')
compile('org.springframework.boot:spring-boot-starter:2.0.0.RELEASE')
compile("org.springframework:spring-web")
compile('org.slf4j:slf4j-api:+')
}
This will use spring-core 5.0.0+, which is compatible with this version of spring-data-redis.