fix(资源服务器): 全局异常处理器扔出403 国际化处理

This commit is contained in:
冷冷 2024-07-15 10:33:50 +08:00
parent 1b0caff5f1
commit 675f4478db

View File

@ -91,7 +91,7 @@ public class GlobalBizExceptionHandler {
String msg = SpringSecurityMessageSource.getAccessor()
.getMessage("AbstractAccessDecisionManager.accessDenied", e.getMessage());
log.warn("拒绝授权异常信息 ex={}", msg);
return R.failed(e.getLocalizedMessage());
return R.failed(msg);
}
/**