增加web严格模式 web.strictMode=false(更严格的数据安全验证,如isAll=true这种参数形式将被禁用)

This commit is contained in:
thinkgem
2019-05-01 23:49:59 +08:00
parent ddc8510479
commit 36dd4c70bc
10 changed files with 18 additions and 12 deletions

View File

@@ -414,7 +414,7 @@ mybatis:
# Web 相关
web:
# MVC 视图相关
view:
@@ -463,7 +463,7 @@ web:
validator:
id: '[a-zA-Z0-9_\-/#\u4e00-\u9fa5]{0,64}'
user.loginCode: '[a-zA-Z0-9_\u4e00-\u9fa5]{4,20}'
# 核心模块的Web功能仅作为微服务时设为false
core:
enabled: true

View File

@@ -48,6 +48,8 @@
if($('.sidebar-menu').length == 1){
$(window).trigger("hashchange");
}
}else{
location = '${ctx}/login';
}
}, 'html');
}