post方法
-
1.检查定义的api接口中方法参数是否使用@RequestParam或@RequestBody,如果没有,根据类型增加@RequestParam或@RequestBody
@HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds", value = "18000") @RequestMapping(value = "getTagTree", method = {RequestMethod.POST}) @Headers("Content-Type: application/json") Result<Map<String, Object>> getTagTree (@RequestParam("projectCode") String projectCode, @RequestParam("classifyCode") String classifyCode);
-
2.实现类中是否也同样使用@RequestParam或@RequestBody,如果没有,根据类型增加@RequestParam或@RequestBody
完成后重启,如果是jar引入,需要重新打包