can @FeignClient extend - and @RestController implement - a common, fully-annotated Interface?
问题 I want a Feign client to consume a Spring Boot controller, and I want the contract between them to be specified in a common Interface to the degree possible. The interface with method would look something like this: @RequestMapping public interface RuleManager { @RequestMapping(value = "/addRule", method = RequestMethod.POST, consumes = {"application/json"}, produces = {"application/json"}) @ResponseBody Rule addRule(@RequestBody Rule rule); } The Feign client would look like: @FeignClient