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);