json 提交表单,增加 exclude 参数,排除不被序列化的参数
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)) {
|
if ("true".equals(isShowCode) || "1".equals(isShowCode)) {
|
||||||
return "(" + code + ") " + StringUtils.replace(name, SPACE, EMPTY);
|
return "(" + code + ") " + StringUtils.replace(name, SPACE, EMPTY);
|
||||||
} else if ("2".equals(isShowCode)) {
|
} else if ("2".equals(isShowCode)) {
|
||||||
return name/*StringUtils.replace(name, " ", "")*/ + " (" + code + ")";
|
return name + " (" + code + ")";
|
||||||
} else {
|
} else {
|
||||||
return name/*StringUtils.replace(name, " ", "")*/;
|
return name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ public class ServletUtils {
|
|||||||
public static boolean isStaticFile(String uri){
|
public static boolean isStaticFile(String uri){
|
||||||
if (STATIC_FILE == null){
|
if (STATIC_FILE == null){
|
||||||
try {
|
try {
|
||||||
throw new Exception("检测到“jeesite.yml”中没有配置“web.staticFile”属性。"
|
throw new Exception("检测到“application.yml”中没有配置“web.staticFile”属性。"
|
||||||
+ "配置示例:\n#静态文件后缀\nweb.staticFile=.css,.js,.png,.jpg,.gif,"
|
+ "配置示例:\n#静态文件后缀\nweb.staticFile=.css,.js,.png,.jpg,.gif,"
|
||||||
+ ".jpeg,.bmp,.ico,.swf,.psd,.htc,.crx,.xpi,.exe,.ipa,.apk");
|
+ ".jpeg,.bmp,.ico,.swf,.psd,.htc,.crx,.xpi,.exe,.ipa,.apk");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user