Swagger中Get/Delete请求显示参数类型为JSON 先上图 看看源码 通过排查发现因为@NotNull注解导致,原因未知 解决方案 去除@NotNull注解即可添加@ApiImplicitParam注解标注请求类型