I am trying to use spring-data-redis in a spring-boot application to work with redis. I am creating JedisConnectionFactory
as follows:
RedisStandalo
Your issue comes from incompatibilities between Spring Boot, Spring Data Commons, and Spring Data Redis.
Ideally, you don't specify any versions when using Spring Boot's Gradle plugin as Spring Boot comes with dependency management for your dependencies ensuring compatibility across the references libraries.
In general, Spring Boot should be your master for dependency versions. Spring Data 2.x is not compatible with Spring Boot 1.x. Please upgrade either to a recent Spring Boot milestone (2.0 M7 as of now) or downgrade Spring Data Redis to 1.7.x.