JedisConnectionFactory, method: afterPropertiesSet signature: ()V) Incompatible argument to function

Caused by: java.lang.VerifyError: (class: org/springframework/data/redis/connection/jedis/JedisConnectionFactory, method: afterPropertiesSet signature: ()V) Incompatible argument to function
   at java.lang.Class.getDeclaredConstructors0(Native Method)
   at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
   at java.lang.Class.getConstructor0(Unknown Source)
   at java.lang.Class.getDeclaredConstructor(Unknown Source)
   at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:78)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:990)
   ... 28 more

在集成spring-session 和redis时候报错,原因是使用的版本之间有冲突,修改版本就可以了。

        
            org.springframework.session
            spring-session-data-redis
            1.3.1.RELEASE
        
        
            org.springframework.data
            spring-data-redis
            1.6.6.RELEASE
        

        
            redis.clients
            jedis
            2.9.0
        

你可能感兴趣的:(JedisConnectionFactory, method: afterPropertiesSet signature: ()V) Incompatible argument to function)