优化代码

This commit is contained in:
thinkgem
2019-09-11 11:44:38 +08:00
parent c5c4d574de
commit 159a0eaec2
4 changed files with 2 additions and 4 deletions

View File

@@ -1,4 +1,3 @@
#######默认配置(/org/beetl/core/beetl-default.properties #######默认配置(/org/beetl/core/beetl-default.properties
ENGINE=org.beetl.core.engine.FastRuntimeEngine ENGINE=org.beetl.core.engine.FastRuntimeEngine
DELIMITER_PLACEHOLDER_START=${ DELIMITER_PLACEHOLDER_START=${

View File

@@ -384,11 +384,11 @@ shiro:
# ${adminPath}/sys/corpAdmin/treeData = anon # ${adminPath}/sys/corpAdmin/treeData = anon
# ${adminPath}/** = user # ${adminPath}/** = user
filterChainDefinitions: | filterChainDefinitions: |
/ReportServer/** = user
${adminPath}/** = user ${adminPath}/** = user
# 默认的授权过滤定义如果在filterChainDefinitions中已经定义则该定义会被覆盖。 # 默认的授权过滤定义如果在filterChainDefinitions中已经定义则该定义会被覆盖。
defaultFilterChainDefinitions: | defaultFilterChainDefinitions: |
/validCode = anon
/static/** = anon /static/** = anon
/userfiles/** = anon /userfiles/** = anon
/druid/** = perms[sys:state:druid] /druid/** = perms[sys:state:druid]

View File

@@ -11,7 +11,7 @@ if (isBlank(message)){
if (@StringUtils.startsWith(e.message!, "msg:")){ if (@StringUtils.startsWith(e.message!, "msg:")){
message = @StringUtils.replace(e.message!, "msg:", ""); message = @StringUtils.replace(e.message!, "msg:", "");
break; break;
}else if (e.class.name! == 'com.jeesite.common.service.ServiceException'){ }else if (type.name(e) == 'ServiceException'){
message = e.message!; message = e.message!;
break; break;
} }

View File

@@ -406,7 +406,6 @@ logging:
# #
# # URI 权限过滤器定义 # # URI 权限过滤器定义
# filterChainDefinitions: | # filterChainDefinitions: |
# /ReportServer/** = user
# ${adminPath}/** = user # ${adminPath}/** = user
# Session 相关 # Session 相关