配置修改

base
zhc077 3 months ago
parent 9ef74f498c
commit add27837fe
  1. 3
      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))

Loading…
Cancel
Save