|
|
|
@ -107,7 +107,7 @@ public class JWTAuthenticationFilter extends UsernamePasswordAuthenticationFilte
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
protected void unsuccessfulAuthentication(HttpServletRequest request, HttpServletResponse response, AuthenticationException failed) throws IOException, ServletException {
|
|
|
|
|
protected void unsuccessfulAuthentication(HttpServletRequest request, HttpServletResponse response, AuthenticationException failed) throws IOException {
|
|
|
|
|
response.setCharacterEncoding("UTF-8");
|
|
|
|
|
response.getWriter().write(JSONUtil.toJsonStr(new ReturnT(-1, "Server Error")));
|
|
|
|
|
}
|
|
|
|
|