Home  >  Article  >  Java  >  Does anyone still use struts2?

Does anyone still use struts2?

藏色散人
藏色散人Original
2019-06-15 13:40:019968browse

Does anyone still use struts2?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How to check jdk versionNext article:How to check jdk version