[주의] DI 우선 순위
SomeJpaRepositoryConfig, OtherJpaRepositoryConfig 2개의 Config가 존재한다. 이 경우 SomeJpaRepositoryConfig에 있는 @Primary Annotation으로 인해 OtherJpaRepositoryConfig의 DataSource와 EntityFactory는 SomeJpaRepository의 DataSource와 EntityFactory가 주입된다. @Configuration public class SomeJpaRepositoryConfig { @Bean @Primary public DataSource dataSource() { ... return new DataSource(...); } @Bean @Primary public LocalCont..
Programming/Spring
2019. 6. 27. 21:40
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Criteria
- Discriminate Mapping
- Registrar
- java EqualsAndHashCode
- Typesafe Config
- JPA
- RetryTemplate
- java Equals
- Property
- Embeddable Mapping
- JPA Criteria
- @Primary
- DI
- 복합키 Mapping
- SmartLifecycle
- Join Table
- Mapping
- Embedded Mapping
- Charles proxy
- Akka
- Spring JDBC Template
- Sprint RetryTemplate
- Query DSL
- scikit-learn
- Spring
- spring spel
- Spring Registrar
- java generic
- docker
- guava
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함