Unable to interpret the implicit parameter configuration with dataType: , dataTypeClass: class java.

天悦哥

关注

阅读 97

2022-05-26


文章目录

  • ​​Unable to interpret the implicit parameter configuration with dataType: , dataTypeClass: class java.lang.Void​​
  • ​​1、具体内容​​
  • ​​2、解决​​

Unable to interpret the implicit parameter configuration with dataType: , dataTypeClass: class java.lang.Void

1、具体内容

日志打印 WARN 日志,Unable to interpret the implicit parameter configuration with dataType: , dataTypeClass: class java.lang.Void
该日志是 Swagger 打印, 意思是使用了 Void 作为默认参数类型,不太合适,建议该一下

2、解决

1、降低 Swagger 版本至 3.0以下
2、为 ApiImplicitParam 指定 dataTypeClass 属性
3、关闭 Swagger 的日志,或者将 Swagger 日志级别调整为 error

精彩评论(0)

0 0 举报