mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-11-01 03:25:35 +08:00 
			
		
		
		
	🎨 兼容SpringBoot3中使用的Jedis4版本
This commit is contained in:
		| @ -14,16 +14,16 @@ import me.chanjar.weixin.mp.config.WxMpConfigStorage; | ||||
| import me.chanjar.weixin.mp.config.impl.WxMpDefaultConfigImpl; | ||||
| import me.chanjar.weixin.mp.config.impl.WxMpRedisConfigImpl; | ||||
| import org.apache.commons.lang3.StringUtils; | ||||
| import org.springframework.beans.factory.annotation.Value; | ||||
| import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; | ||||
| 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.JedisPoolAbstract; | ||||
| import redis.clients.jedis.JedisPoolConfig; | ||||
| import redis.clients.jedis.JedisSentinelPool; | ||||
| import redis.clients.jedis.util.Pool; | ||||
|  | ||||
| import java.util.Set; | ||||
|  | ||||
| @ -74,7 +74,7 @@ public class WxMpStorageAutoConfiguration { | ||||
|   } | ||||
|  | ||||
|   private WxMpConfigStorage jedisConfigStorage() { | ||||
|     JedisPoolAbstract jedisPool; | ||||
|     Pool<Jedis> jedisPool; | ||||
|     if (wxMpProperties.getConfigStorage() != null && wxMpProperties.getConfigStorage().getRedis() != null | ||||
|       && StringUtils.isNotEmpty(wxMpProperties.getConfigStorage().getRedis().getHost())) { | ||||
|       jedisPool = getJedisPool(); | ||||
| @ -131,7 +131,7 @@ public class WxMpStorageAutoConfiguration { | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   private JedisPoolAbstract getJedisPool() { | ||||
|   private Pool<Jedis> getJedisPool() { | ||||
|     RedisProperties redis = wxMpProperties.getConfigStorage().getRedis(); | ||||
|  | ||||
|     JedisPoolConfig config = new JedisPoolConfig(); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Vycz
					Vycz