优化pom和swagger

This commit is contained in:
徐晨晨 2021-11-09 10:52:36 +08:00
parent d023edd7b8
commit c94c5d1c98
2 changed files with 13 additions and 0 deletions

View File

@ -16,6 +16,10 @@
<groupId>com.mt</groupId>
<artifactId>wms-core</artifactId>
</dependency>
<dependency>
<groupId>com.mt</groupId>
<artifactId>wms-basic</artifactId>
</dependency>
</dependencies>
</project>

View File

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