일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- asyncconfigurer
- HashMap
- map
- traceId
- spring MVC
- jpa
- java
- kotlin
- java.util.list
- traceasynccustomautoconfiguration
- java lambda
- EnableWebMvc
- Sleuth
- DeferredImportSelector
- java list
- awssecretsmanagerpropertysources
- Spring JPA
- spring
- wire type
- grpc
- Spring Boot
- list
- aws secretmanager
- elasticsearch
- @FunctionalInterface
- CompletableFuture
- micrometer tracing
- ResponseBody
- asynccustomautoconfiguration
- SpringMVC
- Today
- Total
목록DeferredImportSelector (2)
du.study기록공간

저번포스팅에서 SpringBoot의 AutoConfiguration 동작에 대해서 기록한 적이 있습니다. duooo-story.tistory.com/52 Spring boot Auto Configuration 동작방식 이전에도 간략하게나마 Spring boot의 동작 원리를 작성한 적이 있습니다. 이번에는 그 과정을 좀 더 자세하게 기록해 보고자 합니다. 결론부터 말하면 스프링 부트는 두가지 방법으로 bean 등록을 duooo-story.tistory.com 이번에는 이 동작을 이용해서 직접 해당 코드를 작성해보려합니다. 우선 ComponentScan을 제외한 빈 등록 방식을 사용하기 위해서는 다음과 같은 조건을 충족 클레스가 필요합니다. - import를 통해 불러와지며 ( @Component를 가지고..

이전에도 간략하게나마 Spring boot의 동작 원리를 작성한 적이 있습니다. 이번에는 그 과정을 좀 더 자세하게 기록해 보고자 합니다. 결론부터 말하면 스프링 부트는 두가지 방법으로 bean 등록을 하게됩니다. - ComponentScan 을 통한 bean등록 - DeferredImportSelector 를 구현하고 있는 클레스를 @Import를 통하여 불러오는 @Configuration을 선언하고 있는 클레스 우선은 SpringBoot의 시작부분부터 시작해보겠습니다. 1. @SpringBootApplication @SpringBootConfiguration @EnableAutoConfiguration @ComponentScan(excludeFilters = { @Filter(type = Filter..