public class SpringFeignClientInterfaceRule extends SpringFeignClientInterfaceDecoratorRule
FeignClient.
The goal is to generate code that does not have to be manually extended by the user.
@FeignClient(url = "http://somehost:8080/people", name = "feignClientPeople")
interface PeopleFeignClient {
@RequestMapping(value="", method=RequestMethod.GET)
ResponseEntity<com.gen.test.model.People> getPeople();
}
Now all the user has to do is to autowire this interface.
This way he can invoke remote endpoint.| Constructor and Description |
|---|
SpringFeignClientInterfaceRule() |
Copyright © 2017. All rights reserved.