This commit is contained in:
2021-09-27 10:59:15 +08:00
förälder 0849441a35
incheckning c60fa7f223
225 ändrade filer med 6771 tillägg och 96 borttagningar

Visa fil

@@ -33,6 +33,14 @@
<groupId>com.mt</groupId>
<artifactId>wms-upms</artifactId>
</dependency>
<dependency>
<groupId>com.mt</groupId>
<artifactId>wms-basic</artifactId>
</dependency>
<dependency>
<groupId>com.mt</groupId>
<artifactId>wms-empty</artifactId>
</dependency>
<!-- swagger -->
<dependency>
<groupId>io.springfox</groupId>

Visa fil

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

Visa fil

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