解決 Illegal DefaultValue null for parameter type integer 異常


該異常是由 swagger 引起的

swagger 版本 1.9.2

 

解決原因:重新導入 swagger-annotations 和 swagger-models 版本 為 1.5.21

pom.xml 加入 相關依賴 親測有效

 1  <!--  解決 Illegal DefaultValue null for parameter type integer    異常  -->
 2         <dependency>
 3             <groupId>io.swagger</groupId>
 4             <artifactId>swagger-annotations</artifactId>
 5             <version>1.5.21</version>
 6         </dependency>
 7         <dependency>
 8             <groupId>io.swagger</groupId>
 9             <artifactId>swagger-models</artifactId>
10             <version>1.5.21</version>
11         </dependency>

 

知識來源 :https://www.cnblogs.com/ampl/p/11426687.html

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM