HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
✍🏻
Learnary (learn - diary)
/
🥿
[Core] - @Springboot annotation 동작원리
🥿

[Core] - @Springboot annotation 동작원리

progress
Done
Tags
Spring

소스 코드 까기

notion image
 
이 Annotation의 주된 내용은 아래 3가지
  • @SpringBootConfiguration
  • @EnableAutoConfiguration : 개발자가 지정한 클래스 빈 등록
  • @ComponentScan : 기타 라이브러리의 클래스를 자동으로 빈 등록
 
sprinbbootconfiguration이랑 configuation 주요 차이점
  • @SpringBootConfiguration은 @Configuration 주석의 대안입니다. 주요 차이점은 @SpringBootConfiguration을 사용하면 구성을 자동으로 찾을 수 있다는 것입니다. 이것은 단위 또는 통합 테스트에 특히 유용할 수 있습니다.