Failed to introspect Class [org.springframework.data.redis.connection.jedis.JedisConnectionFactory]

今天在学习springmvc+redis的时候,程序运行出现以下错误;缘由是redis jar版本不匹配的问题,推荐以下版本的jar包。感兴趣的朋友能够尝试其余版本。java

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connectionFactory': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.springframework.data.redis.connection.jedis.JedisConnectionFactory] from ClassLoader [ParallelWebappClassLoaderredis

 

 

<dependency>
    <groupId>redis.clients</groupId>
    <artifactId>jedis</artifactId>
    <version>2.4.2</version>
</dependency>
<dependency>
    <groupId>org.springframework.data</groupId>
    <artifactId>spring-data-redis</artifactId>
    <version>1.3.0.RELEASE</version>
</dependency>
相关文章
相关标签/搜索