mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-04-05 17:38:05 +08:00
🎨 优化yml代码提示功能
This commit is contained in:
parent
b235a779f3
commit
e946ce0642
@ -4,6 +4,7 @@ import com.binarywang.spring.starter.wxjava.miniapp.enums.HttpClientType;
|
||||
import com.binarywang.spring.starter.wxjava.miniapp.enums.StorageType;
|
||||
import lombok.Data;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.boot.context.properties.NestedConfigurationProperty;
|
||||
|
||||
/**
|
||||
* 属性配置类.
|
||||
@ -60,6 +61,7 @@ public class WxMaProperties {
|
||||
/**
|
||||
* redis连接配置.
|
||||
*/
|
||||
@NestedConfigurationProperty
|
||||
private final RedisProperties redis = new RedisProperties();
|
||||
|
||||
/**
|
||||
|
@ -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客户端类型.
|
||||
|
Loading…
Reference in New Issue
Block a user