mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-10-07 15:14:38 +08:00
🎨 升级部分依赖版本,优化代码,部分代码增加泛型参数
This commit is contained in:
@@ -20,6 +20,7 @@ import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.data.redis.core.StringRedisTemplate;
|
||||
import redis.clients.jedis.Jedis;
|
||||
import redis.clients.jedis.JedisPool;
|
||||
import redis.clients.jedis.JedisPoolConfig;
|
||||
import redis.clients.jedis.JedisSentinelPool;
|
||||
@@ -80,7 +81,7 @@ public class WxQidianStorageAutoConfiguration {
|
||||
}
|
||||
|
||||
private WxQidianConfigStorage jedisConfigStorage() {
|
||||
Pool jedisPool;
|
||||
Pool<Jedis> jedisPool;
|
||||
if (StringUtils.isNotEmpty(redisHost) || StringUtils.isNotEmpty(redisHost2)) {
|
||||
jedisPool = getJedisPool();
|
||||
} else {
|
||||
@@ -136,7 +137,7 @@ public class WxQidianStorageAutoConfiguration {
|
||||
}
|
||||
}
|
||||
|
||||
private Pool getJedisPool() {
|
||||
private Pool<Jedis> getJedisPool() {
|
||||
WxQidianProperties.ConfigStorage storage = wxQidianProperties.getConfigStorage();
|
||||
RedisProperties redis = storage.getRedis();
|
||||
|
||||
|
Reference in New Issue
Block a user