diff --git a/pom.xml b/pom.xml index 2d1586b..730e1eb 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.github.fangzy spring-redis-plugin - 1.5.1 + 1.5.2 jar spring-redis-plugin diff --git a/src/main/java/com/github/fangzy/redis/JedisHolder.java b/src/main/java/com/github/fangzy/redis/JedisHolder.java index 34fce54..717cbe6 100644 --- a/src/main/java/com/github/fangzy/redis/JedisHolder.java +++ b/src/main/java/com/github/fangzy/redis/JedisHolder.java @@ -174,8 +174,8 @@ public void afterPropertiesSet() throws Exception { public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { try { Map jedisPoolMap = applicationContext.getBeansOfType(JedisPool.class); - ShardedJedisPool shardedJedisPool = applicationContext.getBean(ShardedJedisPool.class); setJedisPoolMap(jedisPoolMap); + ShardedJedisPool shardedJedisPool = applicationContext.getBean(ShardedJedisPool.class); setShardedJedisPool(shardedJedisPool); } catch (BeansException e) { LOGGER.warn(e.getMessage());