配置修改

base
zhc077 3 months ago
parent 9ef74f498c
commit add27837fe
  1. 3
      jeecg-boot-base-core/src/main/java/org/jeecg/config/Swagger2Config.java
  2. 2
      jeecg-module-system/jeecg-system-start/src/main/resources/application-dev.yml

@ -68,7 +68,8 @@ public class Swagger2Config implements WebMvcConfigurer {
.apiInfo(apiInfo()) .apiInfo(apiInfo())
.select() .select()
//此包路径下的类,才生成接口文档 //此包路径下的类,才生成接口文档
.apis(RequestHandlerSelectors.basePackage("org.jeecg")) // .apis(RequestHandlerSelectors.basePackage("org.jeecg"))
.apis(RequestHandlerSelectors.basePackage("org.jeecg.modules.demo"))
//加了ApiOperation注解的类,才生成接口文档 //加了ApiOperation注解的类,才生成接口文档
.apis(RequestHandlerSelectors.withClassAnnotation(RestController.class)) .apis(RequestHandlerSelectors.withClassAnnotation(RestController.class))
.apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class)) .apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class))

@ -301,5 +301,5 @@ comp:
logo-image: logo-image:
path: /resource/img/comp/ path: /resource/img/comp/
work: work:
# 作品目录,目录分隔符无论操作系统请用"/",路径末尾一定要有"/" # 作品目录,目录分隔符无论操作系统请用"/",路径末尾一定要有"/"
save-path: E:/tmp/ save-path: E:/tmp/

Loading…
Cancel
Save