Does anyone still use struts2?
The answer is yes, some old projects are still done by struts. But relatively speaking, the current mainstream of new development software is SPRING MVC.
Now struts2 has a tendency to be gradually replaced by springmvc. Let’s talk about the reasons:
1. Spring MVC and Spring are seamless. The management and security of this project are also higher than Struts2 (of course Struts2 can also achieve the same effect as SpringMVC through different directory structures and related configurations, but there are many places that require xml configuration).
2. Since Struts2 needs to encapsulate each request, encapsulate the variables of the servlet life cycle such as request and session into Maps for use by each Action and ensure thread safety, so in principle, It consumes more memory.
3. SpringMVC development efficiency and performance are higher than Struts2.
The above is the detailed content of Does anyone still use struts2?. For more information, please follow other related articles on the PHP Chinese website!