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
- 그리디
- pointcut
- 스프링 핵심 원리
- spring
- 스프링 핵심 기능
- http
- transaction
- Servlet
- 백준
- Thymeleaf
- Exception
- db
- QueryDSL
- Spring Boot
- java
- 자바
- jpa
- SpringBoot
- 스프링
- 인프런
- AOP
- Proxy
- JDBC
- kotlin
- 김영한
- JPQL
- springdatajpa
- 알고리즘
- Greedy
- Android
Archives
- Today
- Total
목록@Primary (1)
개발자되기 프로젝트
조회할 빈이 2개 이상일 경우?
@Autowired는 타입으로 조회를 한다. 근데 스프링 컨테이너에 같은 타입의 빈이 여러 개 있으면..? 1. 같은 타입이 2개! DiscountPolicy의 구현체는 2개가 있다. RateDiscountPolicy @Component public class RateDiscountPolicy implements DiscountPolicy{ FixDiscountPolicy @Component public class FixDiscountPolicy implements DiscountPolicy{ 둘 다 @Component등록이 되면 어떻게 될까? 2. Test public class AutoAppConfigTest { @Test void basicScan(){ AnnotationConfigApplica..
인프런/[인프런] Spring 핵심원리 이해
2021. 7. 30. 14:47