|
|
@ -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)) |
|
|
|