Notice
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- jpa
- traceasynccustomautoconfiguration
- Spring JPA
- map
- SpringMVC
- DeferredImportSelector
- elasticsearch
- micrometer tracing
- list
- ResponseBody
- asyncconfigurer
- grpc
- kotlin
- Spring Boot
- wire type
- java list
- Sleuth
- traceId
- java lambda
- aws secretmanager
- spring MVC
- CompletableFuture
- java
- asynccustomautoconfiguration
- HashMap
- EnableWebMvc
- spring
- @FunctionalInterface
- java.util.list
- awssecretsmanagerpropertysources
Archives
- Today
- Total
목록@Value (1)
du.study기록공간
@Value는 어디서 set이 되는걸까?
프로젝트에서 reousrce로 등록한 데이터를 @value를 통해서 데이터를 받아 사용하고 있습니다. 이 기능 덕분에 각 존별로 다른데이터를 코드의 분기처리없이 사용하고 있습니다. @Configuration public class Config { @Value("${test.value}") private String test; } 여기서 든 첫번째 궁금증.. 1. 어디서 예를 set해주는걸까? 우선 결론부터 작성하면 빈 생성과정에서 AutowiredAnnotationBeanPostProcessor 해당 프로세서를 보는 과정에서 postProcessProperties 메서드의 metadata.inject(bean, beanName, pvs); 호출을 통해 @Value가 inject가 됩니다. 좀 더 과정을 ..
스프링
2020. 4. 5. 00:40