chào các bạn mình mới làm quen spring boot và api. mình có sẵn một api server rồi. mình muốn tạo một ứng dụng spring boot để crud api này thì phải làm sao. trên google mình search toàn ra build rest api service thôi
Thắc mắc rest API trong spring boot
Thử xem
private static void getEmployees()
{
final String uri = "http://localhost:8080/springrestexample/employees.xml";
RestTemplate restTemplate = new RestTemplate();
String result = restTemplate.getForObject(uri, String.class);
System.out.println(result);
}