添加Knife
This commit is contained in:
parent
772398d225
commit
5478a347b8
10
pom.xml
10
pom.xml
@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<version>3.5.4</version>
|
||||
<version>3.2.4</version>
|
||||
<relativePath/> <!-- lookup parent from repository -->
|
||||
</parent>
|
||||
<groupId>iet.ustb.sf</groupId>
|
||||
@ -43,6 +43,7 @@
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<version>1.18.38</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@ -50,6 +51,13 @@
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<!-- Knife -->
|
||||
<dependency>
|
||||
<groupId>com.github.xiaoymin</groupId>
|
||||
<artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
|
||||
<version>4.4.0</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
@ -1 +0,0 @@
|
||||
spring.application.name=iet-kpi-service
|
20
src/main/resources/application.yml
Normal file
20
src/main/resources/application.yml
Normal file
@ -0,0 +1,20 @@
|
||||
spring:
|
||||
application:
|
||||
name: iet-kpi-service
|
||||
profiles:
|
||||
active: dev
|
||||
server:
|
||||
port: 9900
|
||||
servlet:
|
||||
context-path: /api
|
||||
# springdoc-openapi????
|
||||
springdoc:
|
||||
group-configs:
|
||||
- group: 'default'
|
||||
paths-to-match: '/**'
|
||||
packages-to-scan: iet.ustb.sf.controller
|
||||
# knife4j???????????????
|
||||
knife4j:
|
||||
enable: true
|
||||
setting:
|
||||
language: zh_cn
|
Loading…
Reference in New Issue
Block a user