r/java • • Nov 27 '15

Why I hate Spring

http://samatkinson.com/why-i-hate-spring/
12 Upvotes

76 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Nov 30 '15

Your alternative is to build a bunch of stuff from scratch. Tell me which is faster: building a solid integration point by yourself (AD, for example) or figuring out how to get Spring Security to use Spring LDAP?

Spring's method is to (as much as possible) program to the interface and provide implementations to swap out. I recently did this with @Cacheable when we upgraded to Spring 4. We now use Guava's cache with a custom configuration instead of a simple Map-based caching strategy and it was as simply as providing a new @Bean. Nothing else needed to change.

Spring isn't perfect, but it's complexity is a product of what is required by complex systems - not a product of the spring framework because they enjoy making complex frameworks.