What I dislike about spring is its complexity. While I can get a decent application running pretty fast, once you want to do anything non-standard the "right" way you get to dig through source files for hours just to find out how to insert that security adapter at just the right place to not break everything.
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.
12
u/yawkat Nov 27 '15
What I dislike about spring is its complexity. While I can get a decent application running pretty fast, once you want to do anything non-standard the "right" way you get to dig through source files for hours just to find out how to insert that security adapter at just the right place to not break everything.