Browse Source

不打异常

chunping 3 years ago
parent
commit
c6d81fc0b7

+ 2 - 2
mp-framework/src/main/java/com/qs/mp/framework/security/handle/AuthenticationEntryPointImpl.java

@@ -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)));
     }
 }