https://www.youtube.com/watch?v=KGB2dL2pTGU
Spring boot를 사용하면 Resttemplate를 bean으로 자동 지정해주는 걸로 알고 있었는데, 안돼서 인도형 영상 보고 Bean을 따로 지정했다.
@SpringBootApplication
public class ServerApplication {
public static void main(String[] args) {
SpringApplication.run(ServerApplication.class, args);
}
@Bean
public RestTemplate restTemplate(){
return new RestTemplate();
}
}