RETTEMPLATE Otrzymuj połączenie API REST w Javie
private static void getEmployees()
{
final String uri = "http://localhost:8080/springrestexample/employees";
//TODO: Autowire the RestTemplate in all the examples
RestTemplate restTemplate = new RestTemplate();
String result = restTemplate.getForObject(uri, String.class);
System.out.println(result);
}
Helpful Hamster