@Bean을 이용하여 스프링 빈 등록
@Component
의존성 주입 (@Autowired)
변경에 유리한 코드
ApplicationContext
@ComponentScan
@Autowired @Resource
apache tomcata
IoC, 코드 분리
@Autowired, @Resource
2. 강한 결합과 느슨한 결합