新增:新增接口文档配置(基于 Spring Doc OpenAPI,使用 Knife4j 作为增强解决方案)

This commit is contained in:
2022-12-11 21:56:18 +08:00
parent 1e5eaab9d3
commit 79891e8b5a
13 changed files with 366 additions and 44 deletions

24
pom.xml
View File

@@ -43,6 +43,7 @@ limitations under the License.
<properties>
<!-- ### 工具库相关 ### -->
<knife4j.version>4.0.0-SNAPSHOT</knife4j.version>
<redisson.version>3.18.1</redisson.version>
<easy-captcha.version>1.6.2</easy-captcha.version>
<hutool.version>5.8.10</hutool.version>
@@ -60,6 +61,15 @@ limitations under the License.
<dependencyManagement>
<dependencies>
<!-- ################ 工具库相关 ################ -->
<!-- Knife4j前身是 swagger-bootstrap-ui集 Swagger2 和 OpenAPI3 为一体的增强解决方案) -->
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-dependencies</artifactId>
<version>${knife4j.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- Redisson不仅仅是一个 Redis Java 客户端) -->
<dependency>
<groupId>org.redisson</groupId>
@@ -151,7 +161,7 @@ limitations under the License.
<configuration>
<java>
<importOrder>
<order>java,javax,lombok,org,com,cn,top.charles7c,</order>
<order>java,javax,lombok,io,org,com,cn,top.charles7c,</order>
</importOrder>
<removeUnusedImports/>
<eclipse>
@@ -203,4 +213,16 @@ limitations under the License.
</properties>
</profile>
</profiles>
<!-- 私服配置(待 Knife4j 正式发版后,移除该配置) -->
<repositories>
<repository>
<id>nexus-maven</id>
<name>nexus-maven</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</project>