From 2d3efb127ac38bd4b0c898bc7c2e0bffdb2dc88d Mon Sep 17 00:00:00 2001 From: TangJiYangNiko Date: Mon, 21 Aug 2023 14:10:59 +0800 Subject: [PATCH] test --- .../serialize/SystemSettingProperties.java | 28 ++----------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/baogutang-common/src/main/java/top/baogutang/common/serialize/SystemSettingProperties.java b/baogutang-common/src/main/java/top/baogutang/common/serialize/SystemSettingProperties.java index 395ecd3..3142218 100644 --- a/baogutang-common/src/main/java/top/baogutang/common/serialize/SystemSettingProperties.java +++ b/baogutang-common/src/main/java/top/baogutang/common/serialize/SystemSettingProperties.java @@ -2,6 +2,7 @@ package top.baogutang.common.serialize; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; +import org.springframework.cloud.context.config.annotation.RefreshScope; import org.springframework.context.annotation.Configuration; /** @@ -11,21 +12,10 @@ import org.springframework.context.annotation.Configuration; */ @Data @Configuration +@RefreshScope @ConfigurationProperties(prefix = "baogutang.system") public class SystemSettingProperties { - - /** - * 是否是演示站点 - */ - private Boolean isDemoSite = false; - - /** - * 测试模式 - * 验证码短信为6个1 - */ - private Boolean isTestModel = false; - /** * 脱敏级别: * 0:不做脱敏处理 @@ -37,20 +27,6 @@ public class SystemSettingProperties { private Integer sensitiveLevel = 0; - public Boolean getDemoSite() { - if (isDemoSite == null) { - return false; - } - return isDemoSite; - } - - public Boolean getTestModel() { - if (isTestModel == null) { - return false; - } - return isTestModel; - } - public Integer getSensitiveLevel() { if (sensitiveLevel == null) { return 0;