Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @RequestMapping("/resource1")
- public interface Api {
- @RequestMapping(method = RequestMethod.POST)
- Resource1 getResource1();
- }
- @RestController
- public class Controller implements Api {
- @Override
- public Resource1 getResource1() {
- return null;
- }
- }
- @Configuration
- public class Config {
- @Bean
- public Api api() {
- return RestClientFactory.createRestClientBasedOnAnnotations(Api.class);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement