Cannot invoke "org.springframework.web.client.RestTemplate.exchange(java.net.URI, org.springframework.http.HttpMethod, org.springframework.http.HttpEntity, java.lang.Class)" because "this.restTemplate" is null
외부 RestAPI에 요청을 보내고 받을 때, NullPointException이 터짐
// 문제 코드
private RestTemplate restTemplate;
의존성 주입해서 해결
private final RestTemplate restTemplate;