From 9bc2d2981b540aa291cfecde5d33615df56a078b Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期五, 22 七月 2022 09:59:19 +0800 Subject: [PATCH] update springboot 2.7.1 => 2.7.2 update hutool 5.8.3 => 5.8.4 update okhttp 4.9.1 => 4.10.0 update lock4j 2.2.1 => 2.2.2 update aws-java-sdk-s3 1.12.248 => 1.12.264 修复依赖安全漏洞 update aliyun.sms 2.0.9 => 2.0.16 update tencent.sms 3.1.537 => 3.1.555 update guava 30.0-jre => 31.1-jre --- ruoyi-common/src/main/java/com/ruoyi/common/config/RuoYiConfig.java | 120 ++++++++++++++--------------------------------------------- 1 files changed, 29 insertions(+), 91 deletions(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/config/RuoYiConfig.java b/ruoyi-common/src/main/java/com/ruoyi/common/config/RuoYiConfig.java index d5d8723..8ce7a8c 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/config/RuoYiConfig.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/config/RuoYiConfig.java @@ -1,116 +1,54 @@ package com.ruoyi.common.config; +import lombok.Data; +import lombok.Getter; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; /** * 璇诲彇椤圭洰鐩稿叧閰嶇疆 - * - * @author ruoyi + * + * @author Lion Li */ + +@Data @Component @ConfigurationProperties(prefix = "ruoyi") -public class RuoYiConfig -{ - /** 椤圭洰鍚嶇О */ +public class RuoYiConfig { + + /** + * 椤圭洰鍚嶇О + */ private String name; - /** 鐗堟湰 */ + /** + * 鐗堟湰 + */ private String version; - /** 鐗堟潈骞翠唤 */ + /** + * 鐗堟潈骞翠唤 + */ private String copyrightYear; - /** 瀹炰緥婕旂ず寮�鍏� */ + /** + * 瀹炰緥婕旂ず寮�鍏� + */ private boolean demoEnabled; - /** 涓婁紶璺緞 */ - private static String profile; + /** + * 缂撳瓨鎳掑姞杞� + */ + private boolean cacheLazy; - /** 鑾峰彇鍦板潃寮�鍏� */ + /** + * 鑾峰彇鍦板潃寮�鍏� + */ + @Getter private static boolean addressEnabled; - public String getName() - { - return name; - } - - public void setName(String name) - { - this.name = name; - } - - public String getVersion() - { - return version; - } - - public void setVersion(String version) - { - this.version = version; - } - - public String getCopyrightYear() - { - return copyrightYear; - } - - public void setCopyrightYear(String copyrightYear) - { - this.copyrightYear = copyrightYear; - } - - public boolean isDemoEnabled() - { - return demoEnabled; - } - - public void setDemoEnabled(boolean demoEnabled) - { - this.demoEnabled = demoEnabled; - } - - public static String getProfile() - { - return profile; - } - - public void setProfile(String profile) - { - RuoYiConfig.profile = profile; - } - - public static boolean isAddressEnabled() - { - return addressEnabled; - } - - public void setAddressEnabled(boolean addressEnabled) - { + public void setAddressEnabled(boolean addressEnabled) { RuoYiConfig.addressEnabled = addressEnabled; } - /** - * 鑾峰彇澶村儚涓婁紶璺緞 - */ - public static String getAvatarPath() - { - return getProfile() + "/avatar"; - } - - /** - * 鑾峰彇涓嬭浇璺緞 - */ - public static String getDownloadPath() - { - return getProfile() + "/download/"; - } - - /** - * 鑾峰彇涓婁紶璺緞 - */ - public static String getUploadPath() - { - return getProfile() + "/upload"; - } } -- Gitblit v1.9.3