这是我的源代码,如下所示。并且Swagger UI为文档生成了以下html。但是如果我调用这个api,即使我设置了application / json类型,它也会将内容类型修复为“text-plain”。所以415错误发生了。如果我将请求方法更改为POST,那就没关系..我该如何解决这个问题?这是一个错误,对吧?
@ApiOperation(value = "TLINK 기능적합율 수집 조회", notes = "기능 적합율 복합지표를 위한 TLINK 기능적합율 연계",
httpMethod = "GET", consumes = "application/json", produces = "application/json",
protocols = "http, https", nickname = "T-Link 기능지표 조회", response = TLink.class)
@ApiResponses(value = {@ApiResponse(code = 500, message = "Process error"),
@ApiResponse(code = 405, message = "Invalid input"),
@ApiResponse(code = 415, message = "Bad format")})
@RequestMapping(method = RequestMethod.GET, produces= "application/json", consumes = "application/json")
public
@ResponseBody
List<TLink> selectAPI(@ApiParam(name = "tlink", required = true, value = "TLink")
@RequestBody TLink tLink) {
logger.info("select api of TLink is triggered. tlink = {}", tLink.toString());
return select(tLink);
}