update
This commit is contained in:
@@ -409,9 +409,9 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
|
||||
if ("true".equals(isShowCode) || "1".equals(isShowCode)) {
|
||||
return "(" + code + ") " + StringUtils.replace(name, SPACE, EMPTY);
|
||||
} else if ("2".equals(isShowCode)) {
|
||||
return name/*StringUtils.replace(name, " ", "")*/ + " (" + code + ")";
|
||||
return name + " (" + code + ")";
|
||||
} else {
|
||||
return name/*StringUtils.replace(name, " ", "")*/;
|
||||
return name;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -121,7 +121,7 @@ public class ServletUtils {
|
||||
public static boolean isStaticFile(String uri){
|
||||
if (STATIC_FILE == null){
|
||||
try {
|
||||
throw new Exception("检测到“jeesite.yml”中没有配置“web.staticFile”属性。"
|
||||
throw new Exception("检测到“application.yml”中没有配置“web.staticFile”属性。"
|
||||
+ "配置示例:\n#静态文件后缀\nweb.staticFile=.css,.js,.png,.jpg,.gif,"
|
||||
+ ".jpeg,.bmp,.ico,.swf,.psd,.htc,.crx,.xpi,.exe,.ipa,.apk");
|
||||
} catch (Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user