I would suggest not to consider these two as mutually exclusive. Struts2 competes with Spring MVC, but Struts2 uses the Spring container for injection and AOP capabilities (Spring core and AOP).
Struts2 and Spring MVC work to achieve the same results: a simple MVC web framework. The decision between them will be to some extent a personal preference. I personally did not like the โfeelโ of working with Spring MVC, while Struts2 and its stack interceptor felt much more comfortable with work.
I would suggest that you work with several Hello World educational applications in each structure and see what seems more intuitive to you. Both structures have strengths and weaknesses, but they can all be overcome.
source
share