From c94c5d1c98ddeabd4a8dfe224db9d9d8e918809e Mon Sep 17 00:00:00 2001 From: Lin-XCC <754310653@QQ.COM> Date: Tue, 9 Nov 2021 10:52:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96pom=E5=92=8Cswagger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 6.program/wms-empty/pom.xml | 4 ++++ .../java/com/mt/wms/gateway/config/SwaggerConfig.java | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/6.program/wms-empty/pom.xml b/6.program/wms-empty/pom.xml index 6cfdff8..cf26262 100644 --- a/6.program/wms-empty/pom.xml +++ b/6.program/wms-empty/pom.xml @@ -16,6 +16,10 @@ com.mt wms-core + + com.mt + wms-basic + \ No newline at end of file diff --git a/6.program/wms-gateway/src/main/java/com/mt/wms/gateway/config/SwaggerConfig.java b/6.program/wms-gateway/src/main/java/com/mt/wms/gateway/config/SwaggerConfig.java index 2527682..ab89eda 100644 --- a/6.program/wms-gateway/src/main/java/com/mt/wms/gateway/config/SwaggerConfig.java +++ b/6.program/wms-gateway/src/main/java/com/mt/wms/gateway/config/SwaggerConfig.java @@ -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()