mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-31 08:14:18 +08:00
fix(资源服务器): 全局异常处理器扔出403 国际化处理
This commit is contained in:
parent
1b0caff5f1
commit
675f4478db
@ -91,7 +91,7 @@ public class GlobalBizExceptionHandler {
|
|||||||
String msg = SpringSecurityMessageSource.getAccessor()
|
String msg = SpringSecurityMessageSource.getAccessor()
|
||||||
.getMessage("AbstractAccessDecisionManager.accessDenied", e.getMessage());
|
.getMessage("AbstractAccessDecisionManager.accessDenied", e.getMessage());
|
||||||
log.warn("拒绝授权异常信息 ex={}", msg);
|
log.warn("拒绝授权异常信息 ex={}", msg);
|
||||||
return R.failed(e.getLocalizedMessage());
|
return R.failed(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user