NoSuchMethodError: org.springframework.data.repository.config.RepositoryConfigurationSource.getAttribute

后端 未结 3 1342
[愿得一人]
[愿得一人] 2021-02-08 00:07

I am trying to use spring-data-redis in a spring-boot application to work with redis. I am creating JedisConnectionFactory as follows:

RedisStandalo         


        
3条回答
  •  余生分开走
    2021-02-08 00:30

    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.

提交回复
热议问题