instructions โ โ the Spring containerโ โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ โ fully configured system โ โ ready for use โ โโโโโโโโโโโโโโโโโโโโโโโโโโโ
instructions โ โ the Spring containerโ โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ โ fully configured system โ โ ready for use โ โโโโโโโโโโโโโโโโโโโโโโโโโโโ
XML โ โ the Spring containerโ โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ โ fully configured system โ โ ready for use โ โโโโโโโโโโโโโโโโโโโโโโโโโโโ
XML โ โ the Spring containerโ โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ โ fully configured system โ โ ready for use โ โโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโ <namespace:*> โ โ the Spring containerโ XML โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ โ fully configured system โ โ ready for use โ โโโโโโโโโโโโโโโโโโโโโโโโโโโ
scanning โ โ the Spring containerโ + @Autowired โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ โ fully configured system โ โ ready for use โ โโโโโโโโโโโโโโโโโโโโโโโโโโโ
scanning โ โ the Spring containerโ + @Autowired โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ โ fully configured system โ โ ready for use โ โโโโโโโโโโโโโโโโโโโโโโโโโโโ
+ @Bean โ โ the Spring containerโ โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ โ fully configured system โ โ ready for use โ โโโโโโโโโโโโโโโโโโโโโโโโโโโ
main(String... args) { ApplicationContext ctx = new AnnotationConfigApplicationContext(AppConfig.class); // retrieve the bean we want to use in typesafe fashion QuoteService quoteService = ctx.getBean(QuoteService.class); System.out.println(quoteService.currentValue("AAPL")); } }
is definitely not going anywhere. This is a concern that commonly comes up when we talk about annotations and such, but we've said it before and we'll say it again: XML was, is, and ever will be a first class citizen in Spring. These new features just mean that if you don't want XML, you don't have to use it. That's all. kthx, bye.
+ @Bean โ โ the Spring containerโ โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ โ fully configured system โ โ ready for use โ โโโโโโโโโโโโโโโโโโโโโโโโโโโ
+ @Bean โ โ the Spring containerโ + @Enable* โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ โ fully configured system โ โ ready for use โ โโโโโโโโโโโโโโโโโโโโโโโโโโโ
+ โโโโโโโโโโโโโโโโโโโโโโโ @Component + โ โ the Spring containerโ @Configuration โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ โ fully configured system โ โ ready for use โ โโโโโโโโโโโโโโโโโโโโโโโโโโโ