Java – Why is spring so good for Java middleware development

javaspring

I'm planning on doing some Java web development in my spare time to learn a new set of programming skills, and just want to survey opinion on why Spring is so good for middleware development?

What are the key features and advantages of using this over, say struts or writing server pages?

Best Answer

Spring MVC is what you are asking about, I believe. I don't know about Struts or regular server pages as I have only used Spring MVC but I found Spring rather straightforward to get started with and was drawn to it by its offering more than just a web framework, such as dependency injection and aspect-oriented programming. I have already begun making good use of DI but haven't used AOP much yet, however I feel that Spring is a good robust platform to where, once you learn it, it can be utilized in other areas besides web development.

Also, Spring MVC makes use of JSP's, I don't think there is any real difference between servlet pages as you mention them and the JSP's in Spring, so its not a tradeoff for using Spring vs servlet pages.

Related Topic