mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-11-01 03:25:35 +08:00 
			
		
		
		
	🎨 优化yml代码提示功能
This commit is contained in:
		| @ -137,8 +137,7 @@ public class WxMpStorageAutoConfiguration { | ||||
|   } | ||||
|  | ||||
|   private JedisPoolAbstract getJedisPool() { | ||||
|     WxMpProperties.ConfigStorage storage = wxMpProperties.getConfigStorage(); | ||||
|     RedisProperties redis = storage.getRedis(); | ||||
|     RedisProperties redis = wxMpProperties.getConfigStorage().getRedis(); | ||||
|  | ||||
|     JedisPoolConfig config = new JedisPoolConfig(); | ||||
|     if (redis.getMaxActive() != null) { | ||||
|  | ||||
| @ -4,6 +4,7 @@ import com.binarywang.spring.starter.wxjava.mp.enums.HttpClientType; | ||||
| import com.binarywang.spring.starter.wxjava.mp.enums.StorageType; | ||||
| import lombok.Data; | ||||
| import org.springframework.boot.context.properties.ConfigurationProperties; | ||||
| import org.springframework.boot.context.properties.NestedConfigurationProperty; | ||||
|  | ||||
| import java.io.Serializable; | ||||
|  | ||||
| @ -49,7 +50,7 @@ public class WxMpProperties { | ||||
|   /** | ||||
|    * 存储策略 | ||||
|    */ | ||||
|   private ConfigStorage configStorage = new ConfigStorage(); | ||||
|   private final ConfigStorage configStorage = new ConfigStorage(); | ||||
|  | ||||
|   @Data | ||||
|   public static class ConfigStorage implements Serializable { | ||||
| @ -68,7 +69,8 @@ public class WxMpProperties { | ||||
|     /** | ||||
|      * redis连接配置. | ||||
|      */ | ||||
|     private RedisProperties redis = new RedisProperties(); | ||||
|     @NestedConfigurationProperty | ||||
|     private final RedisProperties redis = new RedisProperties(); | ||||
|  | ||||
|     /** | ||||
|      * http客户端类型. | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 miemieYaho
					miemieYaho