From 5478a347b8d24cac32d71f795e98ffe2350af155 Mon Sep 17 00:00:00 2001 From: huangge1199 Date: Tue, 5 Aug 2025 11:17:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0Knife?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 10 +++++++++- src/main/resources/application.properties | 1 - src/main/resources/application.yml | 20 ++++++++++++++++++++ 3 files changed, 29 insertions(+), 2 deletions(-) delete mode 100644 src/main/resources/application.properties create mode 100644 src/main/resources/application.yml diff --git a/pom.xml b/pom.xml index a219632..94c452c 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.springframework.boot spring-boot-starter-parent - 3.5.4 + 3.2.4 iet.ustb.sf @@ -43,6 +43,7 @@ org.projectlombok lombok + 1.18.38 true @@ -50,6 +51,13 @@ spring-boot-starter-test test + + + com.github.xiaoymin + knife4j-openapi3-jakarta-spring-boot-starter + 4.4.0 + + diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties deleted file mode 100644 index 54d32f2..0000000 --- a/src/main/resources/application.properties +++ /dev/null @@ -1 +0,0 @@ -spring.application.name=iet-kpi-service diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml new file mode 100644 index 0000000..ded8e0d --- /dev/null +++ b/src/main/resources/application.yml @@ -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 \ No newline at end of file