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 {
@Override
public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException)
throws IOException, ServletException {
throws IOException {
response.setContentType("application/json");
response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
ObjectMapper mapper = new ObjectMapper();