강의

멘토링

로드맵

Inflearn Community Q&A

ymz38199947's profile image
ymz38199947

asked

Spring Core Principles - Basic Edition

Switching to Spring

@Configuration

Written on

·

294

0

안녕하세요 항상잘듣고있습니다.

다름이아니라

AppConfig클래스를 @Configuration 애너테이션을 이용하지않고

@Bean만 사용하여도 스프링 컨테이너에 스프링 빈으로 잘 등록되어 

적용이되는 걸 확인했습니다.

그렇다면 @Configuration이 스프링의 설정 정보라는 의미인데 안써도  @Bean 메서드의 반환 객체가 스프링컨테이너에 잘등록되는건 @Configuration이 생략이 되기때문인가요?

springoop

Quiz

What are the problems that easily occur when client code directly creates the object it wants to use with the `new` keyword?

Compile error occurs.

When requirements change, client code needs to be modified.

Object serialization becomes impossible.

Multithreading problems occur.

Answer 2

1

ymz38199947님의 프로필 이미지
ymz38199947
Questioner

답변감사합니다.!

1

yh님의 프로필 이미지
yh
Instructor

안녕하세요. 재선님^^

궁금하신 부분을 조금 뒤에 있는 싱글톤 컨테이너 섹션에서 자세히 설명드립니다.

감사합니다.

ymz38199947's profile image
ymz38199947

asked

Ask a question