Skip to content

Commit f6431da

Browse files
authored
Merge pull request #173 from b1oodgemini/master
springfox-swagger 2.9.2使用的swagger-models版本(1.5.20)有bug,不填example会报错
2 parents 420e146 + bad3b41 commit f6431da

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
<version.swagger>2.9.2</version.swagger>
5252
<version.spring-boot>1.5.10.RELEASE</version.spring-boot>
5353
<version.lombok>1.18.6</version.lombok>
54+
<version.swagger-models>1.5.24</version.swagger-models>
5455
</properties>
5556

5657
<dependencies>
@@ -78,6 +79,17 @@
7879
<groupId>io.springfox</groupId>
7980
<artifactId>springfox-swagger2</artifactId>
8081
<version>${version.swagger}</version>
82+
<exclusions>
83+
<exclusion>
84+
<artifactId>swagger-models</artifactId>
85+
<groupId>io.swagger</groupId>
86+
</exclusion>
87+
</exclusions>
88+
</dependency>
89+
<dependency>
90+
<groupId>io.swagger</groupId>
91+
<artifactId>swagger-models</artifactId>
92+
<version>${version.swagger-models}</version>
8193
</dependency>
8294
<dependency>
8395
<groupId>io.springfox</groupId>

0 commit comments

Comments
 (0)