WANG před 6 roky
rodič
revize
d69807021f

+ 2 - 1
src/main/java/cn/com/qmth/examcloud/web/interceptor/FirstInterceptor.java

@@ -82,7 +82,8 @@ public class FirstInterceptor implements HandlerInterceptor {
 			return false;
 		}
 
-		if (handler instanceof HandlerMethod) {
+		if ((!org.springframework.http.HttpMethod.OPTIONS.matches(method))
+				&& handler instanceof HandlerMethod) {
 			HandlerMethod handlerMethod = (HandlerMethod) handler;
 			ApiId apiId = handlerMethod.getMethodAnnotation(ApiId.class);