From 124ca536917b5eebe059bb98745f6743c52a6836 Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Tue, 23 Aug 2022 18:47:32 +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