From 111473f057388fff2f6408119cd124496321f1da Mon Sep 17 00:00:00 2001 From: weihongyang <1075331873@qq.com> Date: Tue, 21 Jun 2022 14:47:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9swagger=E5=8F=AA?= =?UTF-8?q?=E5=9C=A8=E5=BC=80=E5=8F=91=E7=8E=AF=E5=A2=83=E4=B8=AD=E5=90=AF?= =?UTF-8?q?=E7=94=A8=EF=BC=8C=E5=9C=A8=E7=94=9F=E4=BA=A7=E5=B9=BB=E5=A2=83?= =?UTF-8?q?=E4=B8=AD=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ym-gateway/src/main/java/com/cnbm/config/SwaggerConfig.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ym-gateway/src/main/java/com/cnbm/config/SwaggerConfig.java b/ym-gateway/src/main/java/com/cnbm/config/SwaggerConfig.java index 6aeac5a..5ddb652 100644 --- a/ym-gateway/src/main/java/com/cnbm/config/SwaggerConfig.java +++ b/ym-gateway/src/main/java/com/cnbm/config/SwaggerConfig.java @@ -5,6 +5,7 @@ import com.google.common.collect.Lists; import io.swagger.annotations.ApiOperation; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.Profile; import springfox.documentation.builders.ApiInfoBuilder; import springfox.documentation.builders.PathSelectors; import springfox.documentation.builders.RequestHandlerSelectors; @@ -26,6 +27,7 @@ import static com.google.common.collect.Lists.newArrayList; */ @Configuration @EnableOpenApi +@Profile("dev") public class SwaggerConfig { /**