优化pom和swagger
This commit is contained in:
parent
d023edd7b8
commit
c94c5d1c98
@ -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>
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user