style: 删除无用代码

This commit is contained in:
haoxr 2022-11-20 22:33:24 +08:00
parent 7301f4eec2
commit 6227aeab4b

View File

@ -23,7 +23,7 @@ import java.io.IOException;
public class MyAuthenticationEntryPoint implements AuthenticationEntryPoint { public class MyAuthenticationEntryPoint implements AuthenticationEntryPoint {
@Override @Override
public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException)
throws IOException, ServletException { throws IOException {
response.setContentType("application/json"); response.setContentType("application/json");
response.setStatus(HttpServletResponse.SC_UNAUTHORIZED); response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
ObjectMapper mapper = new ObjectMapper(); ObjectMapper mapper = new ObjectMapper();