增加 swagger starter

This commit is contained in:
YunaiV
2020-04-20 08:29:09 +08:00
parent 220984c45b
commit 57145d426e
15 changed files with 266 additions and 26 deletions

View File

@@ -16,8 +16,8 @@
<modules>
<module>system-application</module>
<module>system-sdk</module>
<module>system-service-api</module>
<module>system-service-impl</module>
<!-- <module>system-service-api</module>-->
<!-- <module>system-service-impl</module>-->
<module>system-rpc-api</module>
<module>system-rpc</module>
<module>system-rest</module>

View File

@@ -25,15 +25,10 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!-- TODO 实现自己的 starter -->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
</dependency>
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>swagger-bootstrap-ui</artifactId>
<groupId>cn.iocoder.mall</groupId>
<artifactId>mall-spring-boot-starter-swagger</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>

View File

@@ -3,3 +3,10 @@ server:
port: 18083
servlet:
context-path: /system-api/
# Swagger 配置项
swagger:
title: 管理员子系统
description: 管理员子系统
version: 1.0.0
base-package: cn.iocoder.mall.system.rest.controller