From 2ddbd99aa5b2e396f96c6daba60fe1ac2573d9fb Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Sat, 18 May 2024 11:53:54 +0800 Subject: [PATCH] 新增RSS 订阅链接 --- 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