注意
以下两个接口在调用时会产生冲突
例如 postman 调用下面接口时
http://localhost:8080/myweb/companyList
会报错,只能使用 get 方法
原因是 和下面的 post 方法 url 冲突了
@ApiOperation(value = "用户详情", notes = "用户详情", httpMethod = "GET", produces = MediaType.APPLICATION_JSON_VALUE)
@GetMapping(value = "/{platformSerial}")
public DeferredResult<ResponseEntity<BaseResult<PlatformVo>>> userDetail(@ApiParam(value = "用户编号", required = true) @PathVariable("userSerial") String userSerial) {
return ok(userServiceApi.userDetail(userSerial));
}
@ApiOperation(value = "公司信息列表", notes = "公司信息列表", httpMethod = "POST")
@PostMapping(value = "/companyList")
public DeferredResult<ResponseEntity<BaseResult<CompanyInfo>>> companyInfo(@Valid @RequestBody CompanyFilterRequest request) {
return ok(companyServiceApi.companyList(request));
}
post url 方法改为 即可避免冲突
@PostMapping(value = "/company/ist")
|