优化pom和swagger
This commit is contained in:
parent
d023edd7b8
commit
c94c5d1c98
@ -16,6 +16,10 @@
|
|||||||
<groupId>com.mt</groupId>
|
<groupId>com.mt</groupId>
|
||||||
<artifactId>wms-core</artifactId>
|
<artifactId>wms-core</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.mt</groupId>
|
||||||
|
<artifactId>wms-basic</artifactId>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
</project>
|
</project>
|
@ -59,6 +59,15 @@ public class SwaggerConfig {
|
|||||||
.paths(PathSelectors.any())
|
.paths(PathSelectors.any())
|
||||||
.build();
|
.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中进行显示
|
private ApiInfo apiInfo(String title, String description) {// 创建API的基本信息,这些信息会在Swagger UI中进行显示
|
||||||
return new ApiInfoBuilder()
|
return new ApiInfoBuilder()
|
||||||
|
Loading…
Reference in New Issue
Block a user