Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Thymeleaf
- db
- spring
- pointcut
- Greedy
- 스프링
- JDBC
- AOP
- http
- transaction
- 스프링 핵심 원리
- 스프링 핵심 기능
- 그리디
- 김영한
- Android
- java
- 알고리즘
- JPQL
- kotlin
- Proxy
- 인프런
- 자바
- Servlet
- SpringBoot
- springdatajpa
- QueryDSL
- jpa
- 백준
- Spring Boot
- Exception
Archives
- Today
- Total
목록Config 구성 (1)
개발자되기 프로젝트
Appconfig 리팩터링
현채 AppConfig는 중복이 있고, 역할에 따른 구현이 잘 안보인다. public class AppConfig { public MemberService memberService(){ return new MemberServiceImpl(new MemoryMemberRepository()); } public OrderService orderService(){ return new OrderServiceImpl(new MemoryMemberRepository(), new FixDiscountPolicy()); } } 아래와 같이 역할과 구현이 분명히 보이도록 수정해 주자. MemberRepository가 어떤 구현체를 사용할지 분명하게 보임 --> 변경 용이 DiscountPolicy가 어떤 구현체를 사용할..
인프런/[인프런] Spring 핵심원리 이해
2021. 7. 25. 21:29