본문 바로가기
Spring

Component Scan

by e-pd 2020. 8. 15.

ASM (https://asm.ow2.io/) java 바이트코드 컨트롤 분석.

 

Spring 내부의 ASM을 사용

ClassPathScanningCandidateComponentProvider

 

 

내부에서 ASM을 이용한다.

 

 

 

해당클래스 내에서 addCandidateComponentsFromIndex를 사용한다.

 

해당 메서드에서 Meta data를 SimpleMetadataReader를 통해 읽어온다.

 

클래스 로더의 annotation의 정보를 읽어온다.

'Spring' 카테고리의 다른 글

@NotNull @NotEmpty @NotBlank  (0) 2021.01.16
Parameterized Test를 이용해서 여러 값 검증하기  (0) 2021.01.16
엑셀 업로드  (0) 2020.05.31
Tiles 설정  (0) 2019.12.11
초기설정 pom.xml  (0) 2019.12.11