sdeleuze/spring-backbone-todo — pull request #2 by jkuipers (2011-12-14 15:47:07+00:00)
Title: Some simplifications

Hi,

nice example! I had a look, and you're configuring a root context with the same beans as the DispatcherServlet context. That's pointless, so you can simply remove that code. Also, there's no need to inject the result of an @Bean method in a field in the same class: you can simply invoke the method. That still preserves proper singleton behavior, because Spring will create a CGLib proxy that overrides every @Bean method (for exactly this purpose). I took the liberty of making these changes for you, so if you accept this pull request then you'll have these changes immediately.