ソースを参照

升级 springdoc openapi 2.1

hubin 2 年 前
コミット
c357daed0e
4 ファイル変更5 行追加5 行削除
  1. 1 1
      aizuda-service-parent/build.gradle
  2. 1 1
      aizuda-service-parent/pom.xml
  3. 1 1
      build.gradle
  4. 2 2
      pom.xml

+ 1 - 1
aizuda-service-parent/build.gradle

@@ -19,7 +19,7 @@ dependencies {
     // 为了减少依赖 jar 体量,非公共依赖不要申明为 api 必须遵守在负责人同意允许后在对应项目中添加
 
     // 文档
-    api("org.springdoc:springdoc-openapi-webmvc-core")
+    api("org.springdoc:springdoc-openapi-starter-common")
 
     // 日志
     api('org.springframework.boot:spring-boot-starter-log4j2')

+ 1 - 1
aizuda-service-parent/pom.xml

@@ -40,7 +40,7 @@
         </dependency>
         <dependency>
             <groupId>org.springdoc</groupId>
-            <artifactId>springdoc-openapi-webmvc-core</artifactId>
+            <artifactId>springdoc-openapi-starter-common</artifactId>
         </dependency>
         <dependency>
             <groupId>com.lmax</groupId>

+ 1 - 1
build.gradle

@@ -69,7 +69,7 @@ subprojects {
 
         dependencies {
             // 文档
-            dependency("org.springdoc:springdoc-openapi-webmvc-core:1.7.0")
+            dependency("org.springdoc:springdoc-openapi-starter-common:2.1.0")
             dependency("jakarta.servlet:jakarta.servlet-api:6.0.0")
 
             // 工具类

+ 2 - 2
pom.xml

@@ -38,8 +38,8 @@
         <dependencies>
             <dependency>
                 <groupId>org.springdoc</groupId>
-                <artifactId>springdoc-openapi-webmvc-core</artifactId>
-                <version>1.7.0</version>
+                <artifactId>springdoc-openapi-starter-common</artifactId>
+                <version>2.1.0</version>
             </dependency>
             <dependency>
                 <groupId>org.jodd</groupId>