From 42b7d05dfdf60ee67c876084a3240ff48a3bf3a5 Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Wed, 02 Mar 2022 12:08:11 +0800 Subject: [PATCH] 日志添加评论控制 --- snowy-base/snowy-system/src/main/java/vip/xiaonuo/sys/config/SwaggerConfig.java | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/snowy-base/snowy-system/src/main/java/vip/xiaonuo/sys/config/SwaggerConfig.java b/snowy-base/snowy-system/src/main/java/vip/xiaonuo/sys/config/SwaggerConfig.java index 25c5863..b8ec4db 100644 --- a/snowy-base/snowy-system/src/main/java/vip/xiaonuo/sys/config/SwaggerConfig.java +++ b/snowy-base/snowy-system/src/main/java/vip/xiaonuo/sys/config/SwaggerConfig.java @@ -25,6 +25,7 @@ package vip.xiaonuo.sys.config; import cn.hutool.core.collection.CollectionUtil; +import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import springfox.documentation.builders.ApiInfoBuilder; @@ -55,6 +56,7 @@ **/ @Configuration @EnableSwagger2WebMvc +@ConditionalOnProperty(name = "swagger.enable", havingValue = "true") public class SwaggerConfig { private List<Parameter> getParameters() { -- Gitblit v1.9.1