From add27837fe00fd8e82251498907963d18d6443d9 Mon Sep 17 00:00:00 2001 From: zhc077 <565291854@qq.com> Date: Mon, 12 Aug 2024 14:48:08 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/org/jeecg/config/Swagger2Config.java | 3 ++- .../jeecg-system-start/src/main/resources/application-dev.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/jeecg-boot-base-core/src/main/java/org/jeecg/config/Swagger2Config.java b/jeecg-boot-base-core/src/main/java/org/jeecg/config/Swagger2Config.java index f3bb9b8..c485398 100644 --- a/jeecg-boot-base-core/src/main/java/org/jeecg/config/Swagger2Config.java +++ b/jeecg-boot-base-core/src/main/java/org/jeecg/config/Swagger2Config.java @@ -68,7 +68,8 @@ public class Swagger2Config implements WebMvcConfigurer { .apiInfo(apiInfo()) .select() //此包路径下的类,才生成接口文档 - .apis(RequestHandlerSelectors.basePackage("org.jeecg")) +// .apis(RequestHandlerSelectors.basePackage("org.jeecg")) + .apis(RequestHandlerSelectors.basePackage("org.jeecg.modules.demo")) //加了ApiOperation注解的类,才生成接口文档 .apis(RequestHandlerSelectors.withClassAnnotation(RestController.class)) .apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class)) diff --git a/jeecg-module-system/jeecg-system-start/src/main/resources/application-dev.yml b/jeecg-module-system/jeecg-system-start/src/main/resources/application-dev.yml index 0ab89ad..9d98459 100644 --- a/jeecg-module-system/jeecg-system-start/src/main/resources/application-dev.yml +++ b/jeecg-module-system/jeecg-system-start/src/main/resources/application-dev.yml @@ -301,5 +301,5 @@ comp: logo-image: path: /resource/img/comp/ work: -# 作品目录,目录分隔符无论操作系统请用"/",路径末尾一定要有"/" + # 作品目录,目录分隔符无论操作系统请用"/",路径末尾一定要有"/" save-path: E:/tmp/