mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-05-04 04:37:46 +08:00
🐛 修复yml没有redis的配置提示
This commit is contained in:
parent
c8a23b848f
commit
9b322713c1
@ -2,6 +2,7 @@ package com.binarywang.spring.starter.wxjava.mp.properties;
|
|||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
|
import org.springframework.boot.context.properties.NestedConfigurationProperty;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
@ -42,7 +43,7 @@ public class WxMpProperties {
|
|||||||
/**
|
/**
|
||||||
* 存储策略, memory, redis.
|
* 存储策略, memory, redis.
|
||||||
*/
|
*/
|
||||||
private ConfigStorage configStorage = new ConfigStorage();
|
private final ConfigStorage configStorage = new ConfigStorage();
|
||||||
|
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
@ -51,8 +52,8 @@ public class WxMpProperties {
|
|||||||
|
|
||||||
private StorageType type = memory;
|
private StorageType type = memory;
|
||||||
|
|
||||||
private RedisProperties redis = new RedisProperties();
|
@NestedConfigurationProperty
|
||||||
|
private final RedisProperties redis = new RedisProperties();
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum StorageType {
|
public enum StorageType {
|
||||||
|
Loading…
Reference in New Issue
Block a user