반응형 RESTCLIENT1 RestClient 사용 이전 포스팅에서 타 서비스를 호출 하기 위한 몇가지 방법에 대해서 다룬 포스팅이 있다. 자세한 내용은 아래 참고 포스팅 참고 바란다. 하지만 추가로 새로운 방법이 있어서 소개하는 포스팅을 작성한다. 스프링 3.2.2 버전에서 새롭게 추가된 기능인 RestClient 이다. 공식 홈페이지는 아래와 같다. https://spring.io/projects/spring-boot#overview Spring Boot spring.io 간단한 사용법은 아래와 같다. (post 기준) ..이상 생략 import org.springframework.web.client.RestClient; ..이상 생략 TestBuilderInDto testBuilderInDto = new TestBuilderInDto(); RestC.. 2024. 3. 25. 이전 1 다음 반응형