flower_city/src/main/java/com/dg/core/interceptor/AuthorizationInterceptor.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
flower_city/src/main/java/com/dg/core/interceptor/AuthorizationInterceptor.java
@@ -86,7 +86,8 @@ } } if(!StringUtils.isEmpty(token)) { //如果验证token失败,并且方法或类注明了Authorization,返回401错误 if (method.getAnnotation(Authorization.class) != null || bean.getClass().getAnnotation(Authorization.class) != null) @@ -99,6 +100,7 @@ facade.getWriter().write(reponse); return false; } } return true; } }