解决knife4j不支持springboot3.4

This commit is contained in:
阿沐 2025-01-04 23:05:08 +08:00
parent dc558d5534
commit 2747d0e21a
2 changed files with 7 additions and 1 deletions

View File

@ -32,6 +32,12 @@
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
</dependency>
<!-- 为了解决knife4j不支持springboot3.4 -->
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.7.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>

View File

@ -13,7 +13,7 @@ server:
http-only: true
knife4j:
enable: true
enable: false
setting:
custom-code: 500
enable-footer-custom: false