|
@@ -37,10 +37,59 @@
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
<java.version>1.8</java.version>
|
|
<java.version>1.8</java.version>
|
|
|
|
+ <swagger.version>2.9.2</swagger.version>
|
|
</properties>
|
|
</properties>
|
|
|
|
|
|
<dependencies>
|
|
<dependencies>
|
|
|
|
|
|
|
|
+ <!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger-ui -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>io.springfox</groupId>
|
|
|
|
+ <artifactId>springfox-swagger-ui</artifactId>
|
|
|
|
+ <exclusions>
|
|
|
|
+ <exclusion>
|
|
|
|
+ <groupId>io.swagger</groupId>
|
|
|
|
+ <artifactId>swagger-annotations</artifactId>
|
|
|
|
+ </exclusion>
|
|
|
|
+ <exclusion>
|
|
|
|
+ <groupId>io.swagger</groupId>
|
|
|
|
+ <artifactId>swagger-models</artifactId>
|
|
|
|
+ </exclusion>
|
|
|
|
+ </exclusions>
|
|
|
|
+ <version>${swagger.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger2 -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>io.springfox</groupId>
|
|
|
|
+ <artifactId>springfox-swagger2</artifactId>
|
|
|
|
+ <exclusions>
|
|
|
|
+ <exclusion>
|
|
|
|
+ <groupId>io.swagger</groupId>
|
|
|
|
+ <artifactId>swagger-annotations</artifactId>
|
|
|
|
+ </exclusion>
|
|
|
|
+ <exclusion>
|
|
|
|
+ <groupId>io.swagger</groupId>
|
|
|
|
+ <artifactId>swagger-models</artifactId>
|
|
|
|
+ </exclusion>
|
|
|
|
+ <exclusion>
|
|
|
|
+ <groupId>com.google.guava</groupId>
|
|
|
|
+ <artifactId>guava</artifactId>
|
|
|
|
+ </exclusion>
|
|
|
|
+ </exclusions>
|
|
|
|
+ <version>${swagger.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!-- springfox-swagger2 默认引入1.5.20版本,该版本有bug,切换成1.5.22 -->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>io.swagger</groupId>
|
|
|
|
+ <artifactId>swagger-annotations</artifactId>
|
|
|
|
+ <version>1.5.22</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>io.swagger</groupId>
|
|
|
|
+ <artifactId>swagger-models</artifactId>
|
|
|
|
+ <version>1.5.22</version>
|
|
|
|
+ </dependency>
|
|
|
|
+
|
|
<dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|