Inflearn brand logo image

Inflearn Community Q&A

No author

This post's author information has been deleted.

Spring Core Principles - Basic Edition

@Configuration and the magic of bytecode manipulation

@Configutation 질문

Resolved

Written on

·

484

0

ApplicationContext로 class를 등록하고 등록된 빈들을 조회해보니 싱글톤이 보장되는 것을 확인했습니다.

근데 @Configuration을 사용하지 않고 @Bean만 사용하면 주입받는 객체들이 싱글톤을 유지하지 않게되는데

@Configuration이 주입관계있는 빈들까지 싱글톤을 보장해주는 것 맞나요..?

객체지향oopspring

Answer 1

2

안녕하세요. rudnf9605님, 공식 서포터즈 OMG입니다.
.

네 맞습니다. @Configuration이 싱글톤을 보장해주고 있습니다.

의문이 드신다면 본 강의와 직전 강의를 다시한번 복습해보시면 좋을 것 같아요:)


.
감사합니다.

No author

This post's author information has been deleted.

Ask a question