diff --git a/backend/framework/sdk/pom.xml b/backend/framework/sdk/pom.xml index 08ecf3ae3e..aa3bfc8cae 100644 --- a/backend/framework/sdk/pom.xml +++ b/backend/framework/sdk/pom.xml @@ -278,22 +278,6 @@ ${xmlbeans.version} - - - io.swagger.parser.v3 - swagger-parser - ${swagger-parser.version} - - - swagger-core - io.swagger.core.v3 - - - swagger-models - io.swagger.core.v3 - - - org.jsoup diff --git a/backend/services/api-test/pom.xml b/backend/services/api-test/pom.xml index 18f4d0ede7..88a12a730c 100644 --- a/backend/services/api-test/pom.xml +++ b/backend/services/api-test/pom.xml @@ -18,6 +18,22 @@ metersphere-sdk ${revision} + + + io.swagger.parser.v3 + swagger-parser + ${swagger-parser.version} + + + swagger-core + io.swagger.core.v3 + + + swagger-models + io.swagger.core.v3 + + + diff --git a/backend/services/bug-management/src/main/java/io/metersphere/bug/controller/BugController.java b/backend/services/bug-management/src/main/java/io/metersphere/bug/controller/BugController.java index 4e323c35a8..0281149461 100644 --- a/backend/services/bug-management/src/main/java/io/metersphere/bug/controller/BugController.java +++ b/backend/services/bug-management/src/main/java/io/metersphere/bug/controller/BugController.java @@ -3,7 +3,7 @@ package io.metersphere.bug.controller; import io.metersphere.bug.domain.Bug; import io.metersphere.bug.service.BugService; import io.metersphere.validation.groups.Created; -import io.swagger.annotations.Api; +import io.swagger.v3.oas.annotations.media.Schema; import jakarta.annotation.Resource; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -15,7 +15,7 @@ import java.util.List; * @author : jianxing * @date : 2023-5-17 */ -@Api(tags = "缺陷") +@Schema(title = "缺陷") @RestController @RequestMapping("/bug") public class BugController { diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanService.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanService.java index 2adfcfdf54..7419056a9d 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanService.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanService.java @@ -17,7 +17,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import org.springframework.validation.annotation.Validated; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.NotNull; import java.util.ArrayList; import java.util.List; import java.util.UUID;