修正属性配置文件表达式为空时可能报错问题。
This commit is contained in:
@@ -170,7 +170,7 @@ public class PropertiesUtils {
|
||||
while(m.find()) {
|
||||
String g = m.group();
|
||||
String keyChild = g.replaceAll("\\$\\{", "").replaceAll("\\}", "");
|
||||
value = value.replace(g, getProperty(keyChild));
|
||||
value = StringUtils.replace(value, g, getProperty(keyChild));
|
||||
}
|
||||
return value;
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user