Ver código fonte

日志内容修改

chenw 6 anos atrás
pai
commit
a92d3a187e

+ 2 - 2
bi-auth/src/main/java/com/usoftchina/bi/auth/interceptor/SecurityInterceptor.java

@@ -27,13 +27,13 @@ public class SecurityInterceptor implements HandlerInterceptor {
     @Override
     public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
         if (!handler.getClass().isAssignableFrom(HandlerMethod.class)) {
-            logger.error("cat cast handler to HandlerMethod.class");
+            logger.error("can't cast handler to HandlerMethod.class");
             return true;
         }
         // 获取注解
         Auth auth = ((HandlerMethod) handler).getMethod().getAnnotation(Auth.class);
         if (auth == null) {
-            logger.error("cant find @Auth in this uri:{}", request.getRequestURI());
+            logger.error("can't find @Auth in this uri:{}", request.getRequestURI());
             return true;
         }
         // 从参数中取出用户身份并验证