728x90 서버 간 통신1 Spring Boot - 서버 간 통신 예제 예제 RestTemplate - getForEntity 서버 간의 통신을 위한 client 서버를 우선 만듭니다. client 서버를 통해서 다른 서버와 http 통신을 하여 response를 받아옵니다. package com.example.client.controller; import com.example.client.dto.Req; import com.example.client.dto.UserResponse; import com.example.client.service.RestTemplateService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation... 2021. 9. 26. 이전 1 다음 728x90