-
Notifications
You must be signed in to change notification settings - Fork 120
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
경북대 BE_김동현_1주차 과제(2단계) #169
Open
donghyuun
wants to merge
24
commits into
kakao-tech-campus-2nd-step2:donghyuun
Choose a base branch
from
donghyuun:step2
base: donghyuun
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
기존 컨트롤러의 역할을 서비스 클래스를 사용하여 MVC 패턴에 맞게 역할 분담함
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
중점 부분 및 질문
REST API 통신에서 타임리프를 이용한 SSR 렌더링으로 변환하였습니다.
Q. 실제 프로젝트 개발 시 REST API 통신과, SSR 렌더링을 동시에 사용하는 경우가 있는지 궁금합니다.
컨트롤러를 여러 개 만들면서 여러 컨트롤러가 동일한 하나의 저장소를 사용하도록 하기 위해 Repository 클래스를 만들고, 내부에 정적으로 Map<Long, Product> 를 설계한 다음, 각 컨트롤러에서는 DI 를 통해 공통의 저장소를 이용할 수 있도록 했습니다.
Q. 적절한 방법을 사용한 것 같은데 멘토님께서는 어떻게 생각하시는지 궁금합니다.
감사합니다.