From f8409d7a31ac1faa8151d20dc70bdfde0671bcbc Mon Sep 17 00:00:00 2001 From: smallchill Date: Sun, 14 Jul 2024 11:21:34 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E4=BC=98=E5=8C=96swagger=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/swagger/SwaggerLauncherServiceImpl.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/blade-core-swagger/src/main/java/org/springblade/core/swagger/SwaggerLauncherServiceImpl.java b/blade-core-swagger/src/main/java/org/springblade/core/swagger/SwaggerLauncherServiceImpl.java index 97ca842..7523ef6 100644 --- a/blade-core-swagger/src/main/java/org/springblade/core/swagger/SwaggerLauncherServiceImpl.java +++ b/blade-core-swagger/src/main/java/org/springblade/core/swagger/SwaggerLauncherServiceImpl.java @@ -37,10 +37,16 @@ public class SwaggerLauncherServiceImpl implements LauncherService { props.setProperty("swagger.enabled", "false"); props.setProperty("knife4j.enable", "false"); props.setProperty("knife4j.production", "true"); + props.setProperty("springdoc.api-docs.enabled", "false"); + props.setProperty("springdoc.api-usage.enabled", "false"); + props.setProperty("springdoc.swagger-ui.enabled", "false"); } else { props.setProperty("swagger.enabled", "true"); props.setProperty("knife4j.enable", "true"); props.setProperty("knife4j.production", "false"); + props.setProperty("springdoc.api-docs.enabled", "true"); + props.setProperty("springdoc.api-usage.enabled", "true"); + props.setProperty("springdoc.swagger-ui.enabled", "true"); props.setProperty("spring.mvc.pathmatch.matching-strategy", "ANT_PATH_MATCHER"); } }