Skip to content
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

[#74] 12주차 : 템플릿 메소드 패턴 (영준) #78

Merged
merged 2 commits into from
Mar 14, 2022
Merged

Conversation

jun108059
Copy link
Member

No description provided.


#### 참고

**parseInt()**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parseInt vs valueOf 차이 설명 좋았습니다. 👍


---

# 템플릿 콜백(Template-Callback) 패턴
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

콜백 패턴에 대해서 알수 있어서 좋았고 위에서 전달하는 예시도 엄청 이해잘됩니다!!


### RestTemplate

- RestAPI 클라이언트 코드로서 HTTP 요청을 보내주는 편의성 메소드를 제공해준다.
Copy link
Member

@ventulus95 ventulus95 Feb 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

논외의 이야기긴 한데 이제 Spring에서 restTemplate를 쓸일이 점점 적어질것 같습니다.

NOTE: As of 5.0 this class is in maintenance mode, with only minor requests for changes and bugs to be accepted going forward. Please, consider using the org.springframework.web.reactive.client.WebClient which has a more modern API and supports sync, async, and streaming scenarios.

-> 이제 유저모드로 전환된다고 하더라구요.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

유저모드가 WebClient 말씀하는거죠?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Restemplate가 user모드로 전환되고, Spring에서는 WebClient를 추천하더라구요.

Copy link
Contributor

@gowoonsori gowoonsori Feb 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아 유저모드가 maintenance mode말하는 거군영. 당장은 아니지만 차차 deprecate되려나

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

버전업이 되면서 deprecate 될 것 같아요!
WebClient는 동기/비동기 설정을 통해 둘다 처리할 수 있으니, RestTemplate이 현대적이지 않다는 의미로 적혀있네요 ^0^

좋은 포인트 인 것 같아요. 감사합니다.

@gowoonsori gowoonsori merged commit 08fea94 into main Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

4 participants