|
@@ -17,7 +17,7 @@ import org.springframework.stereotype.Component;
|
|
|
|
|
|
/**
|
|
|
* 认证失败处理类 返回未授权
|
|
|
- *
|
|
|
+ *
|
|
|
* @author ygp
|
|
|
*/
|
|
|
@Component
|
|
@@ -31,7 +31,7 @@ public class AuthenticationEntryPointImpl implements AuthenticationEntryPoint, S
|
|
|
{
|
|
|
int code = HttpStatus.UNAUTHORIZED;
|
|
|
String msg = StringUtils.format("请求访问:{},认证失败,无法访问系统资源", request.getRequestURI());
|
|
|
- logger.warn("权限验证失败:"+e.getMessage(),e);
|
|
|
+ logger.warn("权限验证失败:"+e.getMessage());
|
|
|
ServletUtils.renderString(response, JSON.toJSONString(AjaxResult.error(code, msg)));
|
|
|
}
|
|
|
}
|