-
Notifications
You must be signed in to change notification settings - Fork 5
[spring-http-client-1] gib.son(손수환) 과제 제출합니다. #63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: gib/spring-http-client-1
Are you sure you want to change the base?
[spring-http-client-1] gib.son(손수환) 과제 제출합니다. #63
Conversation
yohanii
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
잘 해결하신 것 같습니다!
고생하셨습니다~
| .body(new ParameterizedTypeReference<>() { | ||
| }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저도 complete에 있는 거 보고 알았는데,
.body(Todo[].class)로 하고, List로 변환 하는 법도 있더라구요!
| ResponseEntity<Todo> todoResponseEntity = restTemplate.getForEntity(TODO_URL + "/" + id, Todo.class); | ||
|
|
||
| return todoResponseEntity.getBody(); | ||
| } catch (RestClientException e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RestClientException 범위가 넓어서, 어떤 Exception들이 포함되는지 알아보는 것도 좋을 것 같습니다!
No description provided.