spring boot 项目调用@FeignClient报错not annotated with HTTP method type (ex. GET, POST)

今天使用spring boot 项目调用其他项目的接口,但是报错not annotated with HTTP method type (ex. GET, POST)

之前的配置如图所示

@RequestMapping(method = RequestMethod.GET, value = "/xx/xxx")
Object xx(@RequestParam("aa") Integer aa);

改成如下图所示项目正常运行

@RequestLine("GET /xx/xx?aa={aa}")
Object xx(@Param(value = "aa") Integer aa);

posted on 2018-08-02 17:41  seveth  阅读(3506)  评论(0编辑  收藏  举报

导航