-
Notifications
You must be signed in to change notification settings - Fork 1
Feign client 이용하여 tour API 호출 #3
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: main
Are you sure you want to change the base?
Conversation
임시 커밋이며 TODO가 남아있습니다.
# Conflicts: # build.gradle
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.
Feign Client 이용한 API 호출이 좋아보이는데 한가지 궁금한점이 있습니다. 찾아보니 구현체를 자동으로 구현해준다고 되어있는데, 저희가 원하는 대로 커스텀 할 수 있는건가요? 조회 후 저희에게 맞게 변환하고 DB에 저장하는 작업까지도요!
FeignClient를 사용한다면 다음과 같은 configuration도 있으면 좋을것 같습니다!
|
Feign client 적용하여 호출하면 부가 코드를 줄일 수 있어 좋을 것 같습니다! |
좋네요~ 에러 응답일 경우 공통 파싱 처리 등도 Configuration 통해 지정할 수 있을 것으로 보입니다 |
음.. 커스텀하고 싶은 쪽이 어떤 쪽이신걸까요? 기본으로 제공하는 구현체는 Spring의 RestController와 거의 유사한 방식으로 사용할 수 있도록 구현되어있습니다. |
잘못눌러서 PR 닫았다가 다시 열었습니다 |
오 feign client는 처음 접해보네요! 👍 역시 세상은 넓군요.. |
} | ||
|
||
@Bean | ||
public ResponseInterceptor responseInterceptor(CatcherConverter catcherConverter) { |
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.
홍근님께서 올려주신 PR 참고하여 response converter를 적용해보았습니다
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.
Feign Inteceptor를 통한 공통처리 좋네요!!
미완성입니다만(호출 자체는 잘 되지만 요청 변수 등이 하드코딩 되어있습니다) feign client 이용하여 호출하는 방식이 어떤지 의견을 묻고싶어 우선 PR을 올립니다.