Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: yml没有redis的配置提示
  • Loading branch information
miemieYaho committed Mar 10, 2020
commit e41e43a04ecb24f9ccee1673e97fdb1db5c524d8
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;

import java.io.Serializable;

Expand Down Expand Up @@ -42,7 +43,7 @@ public class WxMpProperties {
/**
* 存储策略, memory, redis.
*/
private ConfigStorage configStorage = new ConfigStorage();
private final ConfigStorage configStorage = new ConfigStorage();


@Data
Expand All @@ -51,8 +52,8 @@ public static class ConfigStorage implements Serializable {

private StorageType type = memory;

private RedisProperties redis = new RedisProperties();

@NestedConfigurationProperty
private final RedisProperties redis = new RedisProperties();
}

public enum StorageType {
Expand Down