|
|
@@ -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;
|
|
|
}
|
|
|
// 从参数中取出用户身份并验证
|