From 0d8434d5419de126223f20333f688caaa864b633 Mon Sep 17 00:00:00 2001 From: DongZeLiang <2746733890@qq.com> Date: Wed, 10 Jul 2024 10:12:06 +0800 Subject: [PATCH] =?UTF-8?q?feat():=20=E6=95=B4=E5=90=88=E6=B5=8B=E8=AF=95s?= =?UTF-8?q?pringdoc-openapi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cloud-modules/cloud-modules-system/pom.xml | 6 ++++++ .../cloud-modules-system/src/main/resources/bootstrap.yml | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/cloud-modules/cloud-modules-system/pom.xml b/cloud-modules/cloud-modules-system/pom.xml index bb668d5..43f0b1f 100644 --- a/cloud-modules/cloud-modules-system/pom.xml +++ b/cloud-modules/cloud-modules-system/pom.xml @@ -82,6 +82,12 @@ org.springframework.boot spring-boot-starter-web + + + org.springdoc + springdoc-openapi-starter-webmvc-ui + 2.6.0 + diff --git a/cloud-modules/cloud-modules-system/src/main/resources/bootstrap.yml b/cloud-modules/cloud-modules-system/src/main/resources/bootstrap.yml index a43725d..b57c6de 100644 --- a/cloud-modules/cloud-modules-system/src/main/resources/bootstrap.yml +++ b/cloud-modules/cloud-modules-system/src/main/resources/bootstrap.yml @@ -8,6 +8,10 @@ nacos: user-name: nacos password: nacos namespace: muyu-cloud +# swagger-ui custom path +springdoc: + swagger-ui: + path: /swagger-ui.html # Spring spring: