Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Componentscan #4

Open
NewWisdom opened this issue Apr 20, 2021 · 0 comments
Open

@Componentscan #4

NewWisdom opened this issue Apr 20, 2021 · 0 comments
Labels
jwp-chess 스프링 입문 - 체스 SpringBoot 스프링

Comments

@NewWisdom
Copy link
Owner

현재 패키지 이하에서 @Component 이 부여된 클래스들을 자동으로 Scan하여 Bean으로 등록해주는 어노테이션.

@SpringBootApplication에 포함되어 애플리케이션을 실행하면 @Component들을 스캔한다.

참고로 우리가 자주 사용하는 @Service, @Repository, @Controller들도 내부에 @Component를 가지고 있다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jwp-chess 스프링 입문 - 체스 SpringBoot 스프링
Projects
None yet
Development

No branches or pull requests

1 participant