swagger2 Illegal DefaultValue for parameter type

加入exclusion

 

排除swagger2本身引用的swagger-models-1.5.20.jar【据说是这版本有bug】,引入更高的版本即可解决问题。

 参考:https://blog.csdn.net/boyin333/article/details/87980108

posted @ 2021-09-30 10:00  二十三年蝉、  阅读(73)  评论(0)    收藏  举报