src/main/java/com/xcong/excoin/configurations/security/CustomAccessDeniedHandler.java | ●●●●● patch | view | raw | blame | history |
src/main/java/com/xcong/excoin/configurations/security/CustomAccessDeniedHandler.java
@@ -21,5 +21,6 @@ public void handle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, AccessDeniedException e) throws IOException, ServletException { Result result = Result.loginFail("fail"); httpServletResponse.getWriter().write(new ObjectMapper().writeValueAsString(result)); httpServletResponse.setStatus(HttpServletResponse.SC_FORBIDDEN); } }