컴포넌트 스캔과 의존관계 자동 주입 시작하기 지금까지 우리가 빈을 등록할 때는 @Bean을 계속 써내려갔다. 만약 할게 많으면 수백개를 해야될 수도 있다. 스프링에서는 자동으로 스프링 빈을 등록하는 컴포넌트 스캔이라는 기능을 제공한다. 의존관계도 자동으로 주입하는 @Autowired라는 기능 또한 제공한다. AutoAppConfig를 새로 만들자. package hello.core; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.FilterType; im..