完成用户第一阶段的需求
This commit is contained in:
@ -27,7 +27,7 @@ public class AuthenticationEntryPointImpl implements AuthenticationEntryPoint, S
|
||||
public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException e)
|
||||
{
|
||||
int code = HttpStatus.UNAUTHORIZED;
|
||||
String msg = StringUtils.format("请求访问:{},认证失败,无法访问系统资源", request.getRequestURI());
|
||||
String msg = "登录信息过期,请重新登录";
|
||||
try
|
||||
{
|
||||
response.setStatus(401);
|
||||
|
Reference in New Issue
Block a user