인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

louie's profile image
louie

asked

Spring Core Principles - Basics

Getting started with component scanning and automatic dependency injection

@ComponentScan 사용 시 @Configuration에 대하여

Resolved

Written on

·

269

0

안녕하세요 영한님 전 강의에서는 @Configuration이 있는 AppConfig클래스에서 CGLIB를 통해 AppConfig를 상속받은 AppConfig@CGLIB 클래스를 빈으로 등록한다고 하셨는데요, 이때는 AppConfig@CGLIB 클래스가 빈으로 등록되었기 때문에 빈 설정 파일에 등록된 모든 메서드가 CGLIB 기능을 거쳐서 빈 등록이 되었다고 생각했었습니다.

그런데 이번 강의와 같이 @Configuration과 컴포넌트 스캔을 통해서 빈 등록을 한다면 빈 등록이 되어있는 모든 객체가 CGLIB 기능을 거쳐서 빈 등록이 되는건지 여쭈어보고 싶습니다!

oopspring

Answer 2

1

yh님의 프로필 이미지
yh
Instructor

안녕하세요. dhdustnr0134님

다음 질문을 참고해주세요.

https://www.inflearn.com/questions/255574

https://www.inflearn.com/questions/267475

감사합니다.

0

louie님의 프로필 이미지
louie
Questioner

답변 감사합니다!

louie's profile image
louie

asked

Ask a question