From ec90851aee1619d7e7444f7f685246e38561c0cd Mon Sep 17 00:00:00 2001 From: rchen9 Date: Thu, 14 Nov 2024 16:32:48 +0800 Subject: [PATCH] fix: sonar --- .../config/ComparisonScriptConfigurableController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arex-web-api/src/main/java/com/arextest/web/api/service/controller/config/ComparisonScriptConfigurableController.java b/arex-web-api/src/main/java/com/arextest/web/api/service/controller/config/ComparisonScriptConfigurableController.java index 7d23953f..a51eea3e 100644 --- a/arex-web-api/src/main/java/com/arextest/web/api/service/controller/config/ComparisonScriptConfigurableController.java +++ b/arex-web-api/src/main/java/com/arextest/web/api/service/controller/config/ComparisonScriptConfigurableController.java @@ -11,6 +11,7 @@ import java.util.List; import org.apache.commons.lang3.StringUtils; import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; @@ -36,7 +37,7 @@ protected ComparisonScriptConfigurableController( * @param interfaceId * @return */ - @RequestMapping("/queryByInterfaceId") + @GetMapping("/queryByInterfaceId") @ResponseBody public Response queryByInterfaceId(@RequestParam String interfaceId, @RequestParam(defaultValue = "false") Boolean filterExpired) {