SyntaxFix
Write A Post
Hire A Developer
Questions
Its just a 2 line of code.
import org.springframework.web.client.RestTemplate; RestTemplate restTemplate = new RestTemplate(); YourBean obj = restTemplate.getForObject("http://gturnquist-quoters.cfapps.io/api/random", YourBean.class);
Ref. Spring.io consuming-rest