mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
support env
This commit is contained in:
@@ -220,6 +220,11 @@ public class SettingLoader {
|
||||
if (null == varValue) {
|
||||
varValue = System.getProperty(key);
|
||||
}
|
||||
// 环境变量中查找
|
||||
if (null == varValue) {
|
||||
varValue = System.getenv(key);
|
||||
}
|
||||
|
||||
if (null != varValue) {
|
||||
// 替换标识
|
||||
value = value.replace(var, varValue);
|
||||
|
Reference in New Issue
Block a user