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"); } }