huodongdong 7 년 전
부모
커밋
b96f1f4298
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      rankin-api-web/src/main/java/cn/rankin/apiweb/intercepter/RequestSignatureInterceptor.java

+ 1 - 1
rankin-api-web/src/main/java/cn/rankin/apiweb/intercepter/RequestSignatureInterceptor.java

@@ -64,7 +64,7 @@ public class RequestSignatureInterceptor implements HandlerInterceptor {
 
         //登录请求不拦截
         String path = request.getServletPath();
-        if (ignorePaths.contains(path) && request.getMethod().equals(HttpMethod.POST)) {
+        if (ignorePaths.contains(path) && HttpMethod.POST.matches(request.getMethod())) {
             logger.info("url: {} do not intercepted!");
             return true;
         }