From e5780a4c0e35df345e7a15d01ae52c0448dcb494 Mon Sep 17 00:00:00 2001 From: Raod <1130305001@qq.com> Date: Fri, 5 May 2023 10:26:45 +0800 Subject: [PATCH] =?UTF-8?q?swagger=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/anjiplus/template/gaea/business/ReportApplication.java | 3 ++- report-core/src/main/resources/bootstrap.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/ReportApplication.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/ReportApplication.java index b4f7ea38..c0b5a0d1 100644 --- a/report-core/src/main/java/com/anjiplus/template/gaea/business/ReportApplication.java +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/ReportApplication.java @@ -4,7 +4,7 @@ import com.anji.plus.gaea.annotation.enabled.EnabledGaeaConfiguration; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.context.annotation.ComponentScans; +import springfox.documentation.swagger2.annotations.EnableSwagger2; /** * 业务模板 @@ -21,6 +21,7 @@ import org.springframework.context.annotation.ComponentScans; "com.anjiplus.template.gaea.business.modules.*.**.dao", "com.anji.plus.gaea.*.module.*.dao" }) +@EnableSwagger2 public class ReportApplication { public static void main( String[] args ) { SpringApplication.run(ReportApplication.class); diff --git a/report-core/src/main/resources/bootstrap.yml b/report-core/src/main/resources/bootstrap.yml index c4d15e9d..2ef5beca 100644 --- a/report-core/src/main/resources/bootstrap.yml +++ b/report-core/src/main/resources/bootstrap.yml @@ -99,7 +99,7 @@ logging: # 本应用自定义参数 customer: # 跳过token验证和权限验证的url清单 - skip-authenticate-urls: /gaeaDict/all, /login, /static, /file/download/, /index.html, /favicon.ico, /reportShare/detailByCode + skip-authenticate-urls: /gaeaDict/all, /login, /static, /file/download/, /index.html, /favicon.ico, /reportShare/detailByCode, /v2/api-docs file: #导入导出临时文件夹 默认.代表当前目录,拼接/tmp_zip/目录 tmpPath: .