RESTTemplate방식을 사용하여 피파 API 서버와 연결 시켰습니다.

→여기서 RestTemplate이란?

:Spring에서 지원하는 객체로 간편하게 Rest 방식 API를 호출할 수 있는 Spring 내장 클래스이다. Spring 3.0부터 지원되었고, json, xml 응답을 모두 받을 수 있다.

https://developers.nexon.com/fifaonline4/apiList 에서 값을 받아와 사용하였습니다.

2.RestTemplate 특징

3.RestTemplate 동작방식

Untitled