[수업 목표]
- AllInOneController를 Refactoring 하며 계층분리에 대해 이해한다.
- IoC, DI 에 대한 이해와 사용법을 습득한다.
[목차]
<aside>
💡 모든 토글을 열고 닫는 단축키
Windows : Ctrl + alt + t
Mac : ⌘ + ⌥ + t
</aside>
0. MySelectShop
- 필요한 기능 확인하기
- Product API 확인하기
1. AllInOneController의 역할 분리
- Controller, Service, Repository 역할
- Quiz. 관심사 분리해보기
- Quiz 정답
2. AllInOneController의 코드 분리
- Controller, Service, Repository 로 코드 분리
- Refactoring 후 개선점 확인
3. 객체 중복 생성 문제 해결하기