美文网首页
swagger的问题

swagger的问题

作者: 轻云绿原 | 来源:发表于2020-12-09 13:58 被阅读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>

相关文章

网友评论

      本文标题:swagger的问题

      本文链接:https://www.haomeiwen.com/subject/ipdhgktx.html