表生成
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user