Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class RestClient<T> {
- protected T do() {
- RestTemplate restTemplate = new RestTemplate();
- restTemplate.getMessageConverters().add(new MappingJackson2HttpMessageConverter());
- return restTemplate.getForObject(url, T.class);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement