swagger的问题
2020-12-09 本文已影响0人
轻云绿原
问题
Illegal DefaultValue null for parameter type integer
java.lang.NumberFormatException: For input string: ""
解决
把原来的
swagger-models 1.5.20
换成swagger-models 1.5.21
swagger-annotations 1.5.20
换成swagger-annotations 1.5.21
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-boot-starter</artifactId>
<exclusions>
<exclusion>
<groupId>io.swagger</groupId>
<artifactId>swagger-models</artifactId>
</exclusion>
<exclusion>
<groupId>io.swagger</groupId>
<artifactId>swagger-annotations</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-models</artifactId>
<version>1.5.21</version>
</dependency>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-annotations</artifactId>
<version>1.5.21</version>
</dependency>