Redis整合spring版本问题
一开始使用
<!-- https://mvnrepository.com/artifact/redis.clients/jedis --><dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>3.0.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-redis -->
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-redis</artifactId>
<version>2.1.5.RELEASE</version>
</dependency>
报错:
Exception in thread "main" 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 ClassLoad