当需要使用Feign调用第三方Restful接口时
1、接口中所需的参数和url上的参数相同格式为
@PostMapping(value="/common/update/delete/{type}/{bizCode}", produces= {MediaType.APPLICATION_JSON_UTF8_VALUE},consumes = {MediaType.APPLICATION_JSON_UTF8_VALUE})
JSONObject deleteApp(@PathVariable("type")String type, @PathVariable("bizCode")String bizCode);
2、接口中所需的参数和url上的参数不相同时格式为
@PostMapping(value="/common/update/delete/{type}/{bizCode}", produces= {MediaType.APPLICATION_JSON_UTF8_VALUE},consumes = {MediaType.APPLICATION_JSON_UTF8_VALUE})
JSONObject delete(@RequestParam("userCode") String userCode, @PathVariable("type")String type, @PathVariable("bizCode")String bizCode);