springboot集成swagger2报Illegal DefaultValue null for parameter type integer
springboot集成swagger2,实体类中有int类型,会报“ Illegal DefaultValue null for parameter type integer”的错误
解决办法:修改pom.xml如下
<dependency> <groupId>io.springfoxgroupId> <artifactId>springfox-swagger2artifactId> <version>2.9.2version> <exclusions> <exclusion> <groupId>io.swaggergroupId> <artifactId>swagger-modelsartifactId> exclusion> exclusions> dependency> <dependency> <groupId>io.swaggergroupId> <artifactId>swagger-modelsartifactId> <version>1.5.21version> dependency>