表生成

This commit is contained in:
2021-09-27 10:59:15 +08:00
parent 0849441a35
commit c60fa7f223
225 changed files with 6771 additions and 96 deletions

View File

@@ -25,7 +25,9 @@ import org.springframework.scheduling.annotation.EnableScheduling;
"com.mt.wms.gateway",
"com.mt.wms.common",
"com.mt.wms.passport",
"com.mt.wms.upms"
"com.mt.wms.upms",
"com.mt.wms.basic",
"com.mt.wms.empty"
})
@ServletComponentScan("com.mt.wms.gateway.filter")

View File

@@ -50,6 +50,15 @@ public class SwaggerConfig {
.paths(PathSelectors.any())
.build();
}
@Bean
public Docket basicApi() {
return new Docket(DocumentationType.SWAGGER_2).groupName("wms-basic")
.apiInfo(apiInfo("basic", "基础信息接口"))
.select()
.apis(RequestHandlerSelectors.basePackage("com.mt.wms.basic"))
.paths(PathSelectors.any())
.build();
}
private ApiInfo apiInfo(String title, String description) {// 创建API的基本信息这些信息会在Swagger UI中进行显示
return new ApiInfoBuilder()