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

后端 未结 3 698
萌比男神i
萌比男神i 2021-02-08 00:01

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:36

    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.

提交回复
热议问题