修正属性配置文件表达式为空时可能报错问题。
This commit is contained in:
@@ -170,7 +170,7 @@ public class PropertiesUtils {
|
|||||||
while(m.find()) {
|
while(m.find()) {
|
||||||
String g = m.group();
|
String g = m.group();
|
||||||
String keyChild = g.replaceAll("\\$\\{", "").replaceAll("\\}", "");
|
String keyChild = g.replaceAll("\\$\\{", "").replaceAll("\\}", "");
|
||||||
value = value.replace(g, getProperty(keyChild));
|
value = StringUtils.replace(value, g, getProperty(keyChild));
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -3,17 +3,23 @@
|
|||||||
#===== Project settings =====#
|
#===== Project settings =====#
|
||||||
#============================#
|
#============================#
|
||||||
|
|
||||||
# 产品或项目名称、版本、版权年份
|
# 产品或项目名称、软件开发公司名称
|
||||||
productName: JeeSite Demo
|
productName: JeeSite Demo
|
||||||
|
companyName: ThinkGem
|
||||||
|
|
||||||
|
# 产品版本、版权年份
|
||||||
productVersion: V4.0
|
productVersion: V4.0
|
||||||
copyrightYear: 2018
|
copyrightYear: 2018
|
||||||
|
|
||||||
# 软件提供商公司或个人名称
|
|
||||||
companyName: ThinkGem
|
|
||||||
|
|
||||||
#是否演示模式
|
#是否演示模式
|
||||||
demoMode: false
|
demoMode: false
|
||||||
|
|
||||||
|
#是否小程序
|
||||||
|
miniService: true
|
||||||
|
|
||||||
|
#是否小程序
|
||||||
|
miniConfig: true
|
||||||
|
|
||||||
#============================#
|
#============================#
|
||||||
#===== Database sttings =====#
|
#===== Database sttings =====#
|
||||||
#============================#
|
#============================#
|
||||||
|
|||||||
Reference in New Issue
Block a user