doc: 注释完善优化

This commit is contained in:
Ray.Hao
2025-01-13 20:17:45 +08:00
parent 1e1c4b6365
commit 91c1b29f02
2 changed files with 4 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException; import java.io.IOException;
/** /**
* 未认证处理器 * 未认证异常处理器
* *
* @author Ray.Hao * @author Ray.Hao
* @since 2.0.0 * @since 2.0.0
@@ -32,7 +32,7 @@ public class MyAuthenticationEntryPoint implements AuthenticationEntryPoint {
// 用户名或密码错误 // 用户名或密码错误
ResponseUtils.writeErrMsg(response, ResultCode.USER_PASSWORD_ERROR, authException.getMessage()); ResponseUtils.writeErrMsg(response, ResultCode.USER_PASSWORD_ERROR, authException.getMessage());
} else { } else {
// 未认证或者token过期 // 登录异常
ResponseUtils.writeErrMsg(response, ResultCode.USER_LOGIN_EXCEPTION, authException.getMessage()); ResponseUtils.writeErrMsg(response, ResultCode.USER_LOGIN_EXCEPTION, authException.getMessage());
} }
} }

View File

@@ -17,9 +17,9 @@ import org.springframework.web.filter.OncePerRequestFilter;
import java.io.IOException; import java.io.IOException;
/** /**
* 验证和解析 JWT Token 过滤器 * JWT Token 验证和解析过滤器
* *
* @author Ray Hao * @author Ray.Hao
* @since 2023/9/13 * @since 2023/9/13
*/ */
public class JwtAuthenticationFilter extends OncePerRequestFilter { public class JwtAuthenticationFilter extends OncePerRequestFilter {