Spring에서 제공하는 @Order는 List 형태로 DI 받을때 주입받는 Bean의 우선순위가 필요할때 사용한다. @Order(value = 1), @Order(value = 2), @Order(value = 3).. @Order의 value가 작을수록 우선순위가 높아 앞쪽으로 정렬되고, value가 클수록 우선순위가 낮아 뒷쪽으로 정렬된다. 이 때 주의할 점은 주입받는 N개의 Bean중 일부만 @Order를 사용하면 나머지Bean의 순서는 임의의 순서로 적용된다는 점이다. List중 가장 마지막에 DI 되어야 하는 Bean이 있어서 이 Bean에만 @Order(Ordered.LOWEST_PRECEDENCE) 를 사용했다. Local에서는 이 Bean이 가장 나중에 나와 정상적으로 정렬이 되었는줄 알..
some properties some.url=https://www.some.com 1. @PropertySource - config class @PropertySource("classpath:/my/application/some.properties") or @PropertySources({ @PropertySource("classpath:/my/application/some.properties"), @PropertySource(name="otherProperties", value={"classpath:/my/application/other.properties"}) }) or @PropertySource({"classpath:/my/application/some.properties", "classpath:..
- Total
- Today
- Yesterday
- Mapping
- SmartLifecycle
- Join Table
- Typesafe Config
- Akka
- Spring JDBC Template
- java Equals
- @Primary
- scikit-learn
- Discriminate Mapping
- DI
- Charles proxy
- JPA
- 복합키 Mapping
- JPA Criteria
- Spring
- guava
- java generic
- java EqualsAndHashCode
- Query DSL
- RetryTemplate
- docker
- Spring Registrar
- Embeddable Mapping
- spring spel
- Criteria
- Sprint RetryTemplate
- Registrar
- Embedded Mapping
- Property
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |