2 ms·
> Instead of writing a giant set of XML files to create a giant set of POJOs and wire them together, you write a similar set of Java classes This is how you wo
by zupatol 14y ago
> Instead of writing a giant set of XML files to create a giant set of POJOs and wire them together, you write a similar set of Java classes
This is how you would do it without spring. I suppose there must be an advantage of using @Configuration and @Bean instead of plain java, but what is it?
- dimasg 14y agoThey give you automatic proxied/intercepted objects for things like Transaction management, asynchronous execution, general AOP, etc. If you're not using any of that, there's probably little to no advantage to using pure Java DI. But those things are really nice to have.