From 1513e338f12fe68af3a1761f46841470cc3cb4ec Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Sat, 10 Oct 2020 15:25:07 +0800 Subject: [PATCH] Merge branch 'whole' of https://gitee.com/chonggaoxiao/new_excoin into whole --- src/main/java/com/xcong/excoin/configurations/security/CustomAccessDeniedHandler.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/xcong/excoin/configurations/security/CustomAccessDeniedHandler.java b/src/main/java/com/xcong/excoin/configurations/security/CustomAccessDeniedHandler.java index d0bf50e..34f840f 100644 --- a/src/main/java/com/xcong/excoin/configurations/security/CustomAccessDeniedHandler.java +++ b/src/main/java/com/xcong/excoin/configurations/security/CustomAccessDeniedHandler.java @@ -19,7 +19,7 @@ public class CustomAccessDeniedHandler implements AccessDeniedHandler { @Override public void handle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, AccessDeniedException e) throws IOException, ServletException { - Result result = Result.loginFail("fail"); + Result result = Result.loginFail("Forbidden"); httpServletResponse.getWriter().write(new ObjectMapper().writeValueAsString(result)); httpServletResponse.setStatus(HttpServletResponse.SC_FORBIDDEN); } -- Gitblit v1.9.1