使用库:
<dependency>
<groupId>com.mangofactory</groupId>
<artifactId>swagger-springmvc</artifactId>
<version>1.0.2</version>
</dependency>
@ApiResponse声明如下:
@ApiResponses(value= {
@ApiResponse(code = 400, message = "TEST 1"),
@ApiResponse(code = 400, message = "TEST 2")
})
JSON输出显示:
{"code":400,"message":"TEST 2","responseModel":"Void"}
预期的输出实际上是:
{"code":400,"message":"TEST 2","responseModel":"Void"},{"code":400,"message":"TEST 1","responseModel":"Void"},
无论如何要解决这个问题?
中