RestTemplate
RestTemplate는 RESTful 웹 서비스를 호출하기 위한 자바에서 제공하는 클래스
RestTemplate restTemplate = new RestTemplate();
String url = "https://jsonplaceholder.typicode.com/todos/1";
Todo todo = restTemplate.getForObject(url, Todo.class);
https://standout.tistory.com/620
RESTful 방식이란?
RESTful Representational State Transfer RESTful은 웹 서비스 아키텍처의 한 형태 웹 기술을 이용해 자원을 이름(URI)으로 식별하고 HTTP 메서드를 이용해 해당 자원을 조작하는 스타일 https://standout.tistory.com/60
standout.tistory.com
'JAVA > Spring' 카테고리의 다른 글
Spring Framework vs Spring Boot 차이 (0) | 2023.06.08 |
---|---|
Spring 버전별 특징 (0) | 2023.05.10 |
Annotation - @RestController (0) | 2023.05.10 |
Annotation - @RequestBody @ResponseBody (0) | 2023.05.10 |
Annotation - @ResponseEntity (0) | 2023.05.10 |