swagger reports an error:
TypeError: Failed to execute 'fetch' on 'Window': Request with GET/HEAD method cannot have body.
Only with @ResponseBody will the swagger list be obtained in the interface
It is because the method declares the get method but uses @requestBody
RequestMethod.POST---》@RequestBody
RequestMethod.POST---"@RequestParam This is also obtained from the body
RequestMethod.GET---"This can be model-driven or attribute-driven with parameters, but it cannot be obtained from the body with @ annotation
@ResponseBody
@RequestMapping(value = { "/listFunc" }, method = RequestMethod.POST,produces="application/json;charset=UTF-8")
@ApiResponses(value = {@ApiResponse(code = 200, message = "Character function information", response=String.class),
@ApiResponse(code = 201, message = "q"+ "(token验证失败)", response=String.class),
@ApiResponse(code = 202, message = "500" + "(系统错误)",response = String.class)})
@ApiOperation(value="查询列表",notes="/list",response = String.class)
public BaseResponse<List<FinancialSalesFunc>> listFunc(@RequestBody(required = false) FinancialSalesRole financialSalesRole) {
}
@RequestMapping(value = { "/modal" }, method = RequestMethod.GET)
public String customerinfo(CoreBusinessTypeCondition condition, ModelMap modelMap) throws IOException {
}