News for hackers. Stuff that matters.
Re:Why I stopped using Spring by jonhohle on Wednesday December 25, 2013 @01:28PM (#6963741)
I consider @Autowired and bean config in code as harmful. It also seems like one of the main things Spring was all about n the beginning - decoupling your application from the configuration framework - is now come full circle to tight coupling with Spring. Not only that, but code which references config files for one spaghetti mess of code and config that is a pain to test. More and more I run into library packages with direct dependencies on Spring config - and it makes integration painful.

I'd be happy to see Spring config in a format other than XML (JSON, YAML, whatever), but even more than that, a complete elimination of any Spring config directly in Java files.

Re:Why I stopped using Spring by karlmdavis on Wednesday December 25, 2013 @03:34PM (#6964147)
The latest Spring release supports a Groovy DSL for configuration: http://docs.spring.io/spring/docs/4.0.0.RELEASE/spring-frame...
Re:Why I stopped using Spring by vorg on Wednesday December 25, 2013 @03:56PM (#6964211)
Groovy? Another reason not to use Spring.
Re:Why I stopped using Spring by MoosePlissken on Wednesday December 25, 2013 @06:07PM (#6964634)
Well, you can already do java based config, which is not the same as annotation based config. As with XML config, Java based config lives outside of your application code in classes dedicated to configuration. You just use Java instead of XML, which makes things much nicer.

See here: http://docs.spring.io/spring/docs/3.2.7.BUILD-SNAPSHOT/sprin...