doc: 注释完善优化
This commit is contained in:
@@ -15,7 +15,7 @@ import jakarta.servlet.http.HttpServletResponse;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* 未认证处理器
|
||||
* 未认证异常处理器
|
||||
*
|
||||
* @author Ray.Hao
|
||||
* @since 2.0.0
|
||||
@@ -32,7 +32,7 @@ public class MyAuthenticationEntryPoint implements AuthenticationEntryPoint {
|
||||
// 用户名或密码错误
|
||||
ResponseUtils.writeErrMsg(response, ResultCode.USER_PASSWORD_ERROR, authException.getMessage());
|
||||
} else {
|
||||
// 未认证或者token过期
|
||||
// 登录异常
|
||||
ResponseUtils.writeErrMsg(response, ResultCode.USER_LOGIN_EXCEPTION, authException.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,9 +17,9 @@ import org.springframework.web.filter.OncePerRequestFilter;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* 验证和解析 JWT Token 的过滤器
|
||||
* JWT Token 验证和解析过滤器
|
||||
*
|
||||
* @author Ray Hao
|
||||
* @author Ray.Hao
|
||||
* @since 2023/9/13
|
||||
*/
|
||||
public class JwtAuthenticationFilter extends OncePerRequestFilter {
|
||||
|
||||
Reference in New Issue
Block a user