瀏覽代碼

🐛 修复yml没有redis的配置提示

dev1
miemieYaho 5 年之前
committed by GitHub
父節點
當前提交
9b322713c1
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. +4
    -3
      spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/properties/WxMpProperties.java

+ 4
- 3
spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/properties/WxMpProperties.java 查看文件

@@ -2,6 +2,7 @@ package com.binarywang.spring.starter.wxjava.mp.properties;

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

import java.io.Serializable;

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


@Data
@@ -51,8 +52,8 @@ public class WxMpProperties {

private StorageType type = memory;

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

public enum StorageType {


Loading…
取消
儲存