Failed to execute fetch on Window Request with GET or HEAD method cannot have body

GET 格式

@BusinessLog(action = "detail", actionDetail = "详情查询", actionMessageId = "detail")
@ApiOperation(value = "详情查询", notes = "详情查询", httpMethod = "GET")
@GetMapping(path = "/detail")
public ApiResponse detail(String eventId) {
     
	return testService.detail(eventId);
}

POST 格式

@BusinessLog(action = "detail", actionDetail = "详情查询", actionMessageId = "detail")
@ApiOperation(value = "详情查询", notes = "详情查询", httpMethod = "POST")
@PostMapping("/detail")
public ApiResponse detail(@ApiParam(value = "详情查询请求参数") @RequestBody DetailReq detailReq) {
     
	return testService.detail(detailReq);
}

你可能感兴趣的:(Java,swagger,Springboot,java,spring,boot)