start

If you, like me, have worked on at least 5+ software projects with the Struts and Struts2 frameworks, we are fortunate to be contemporaries.

history

First of all, Struts and Struts2 need to be clarified that they are not all related together, just because they belong to the past tense. Struts2 is not an upgrade to Struts, Struts2 is derived from the WebWork framework, and its kernel is nothing like the Struts kernel (although there are similarities), so when Struts2 came along, We used to call the old Struts framework Struts1, but they don’t have much to do with each other.

At that time, in the era of Servlet and JSP, the emergence of Struts framework made the Servlet perfect, and at that time, there seemed to be such a great MVC framework in China. Most software products used Struts as the MVC framework, and I will not talk more about Struts framework. When Struts2 comes along, it definitely beats the previous Struts framework, because Struts2 has more freedom and configuration than Struts. Struts is awesome when you go from Servlet to Struts, and Struts2 is awesome when you go from Struts to Struts2.

Struts2

After the emergence of Struts2, it once occupied the whole MVC field at that time. It could be said that the scenery was infinite, so that “SSH”, which was led by Struts2, Struts2 + Hibernate + Spring, Those were the three great framers of JavaWeb back then. In those days, whether you went to college or a training institute or whatever, SSH was standard when you went to any software company for an interview. You had to know SSH. But now just work of the little brother, little sisters should be few know SSH, what do you know? Have you ever done a project with it? emmm

change

Time flies, time flies. Few companies now use Struts2 for anything other than old or antique projects, and it’s even harder to find SSH in a job listing. Obviously, Struts2 has been replaced by SpringMVC and Spring Boot, Hibernate is gradually replaced by MyBatis or Spring Data JPA or others, at least in China, Now that SSM (Spring + Spring MVC/ Spring Boot + MyBatis) is in the game, it’s fair to say that Struts2 is obsolete (the Struts framework has been forgotten for thousands of miles here).

The relationship between JPA and Sprng Data

So why is Struts2 obsolete? (Personal opinion, don’t spray unless you like it)

  • The loophole is much, did not say, in those days some east of that matter, have interest to check.
  • Let the waves behind drive on those ahead in the Yangtze River

New opportunities

With the emergence of SpringMVC framework, it can be seamlessly connected with Spring, from configuration performance and other aspects are better than Struts2, and now SpringBoot is a big killer, zero XML configuration, out of the box, double the efficiency, development only need to focus on business implementation, no more attention to the framework configuration.

It’s no use crying over spilt milk.

Who uses Struts2 these days??

What do you think of Struts2 being phased out??