You can listen to the following story, borrowing a sentence from Brother Xun:
There is no road in this world, but with more people walking, it becomes a road...
The framework is not there from the beginning. In the world of Java web development, there is only one servlet API available at the beginning. If you want to develop web applications, you can only rely on it;
Just this simple API is really hard to develop. So while the "martyrs" who came one after another jumped into this pit, some people really couldn't stand it anymore, so the so-called framework was created. In fact, the so-called framework at this time is just a framework, which helps you solve part of the work, but it is still difficult to use, let alone decoupling and expansion, blah blah blah;
MVC children's shoes may not be very familiar to web developers at first, it is just a design pattern. Suddenly one day, a certain master discovered that this thing is really useful in web development. It decouples the data, business logic and information display in the web request process very well, and provides various parts of it very well. Scalability. To sum it up, whoever uses it knows whether it is good or not! , at this time, the relationship between MVC and web development quickly entered the honeymoon period. As a web developer, when chatting, you are embarrassed to say that you don’t know MVC. As a result, various MVC frameworks for web development have sprung up like mushrooms after a rain... During this period, Struts is the most popular lover accepted by the majority of web developers in the Java world.
At about the same time, there was another popular lover in the javaEE world, and that was EJB. However, relying on everyone's love for her, she became more and more verbose and procrastinated, and developed many bad habits. At this time, a guy who was awesome at coaxing couldn't stand it anymore and brought out another newcomer - spring. The emergence of this guy shocked the friends in the Java world. He is so pure, elegant and fascinating. Therefore, after some time, spring gradually surpassed EJB and became the well-deserved No. 1 public lover in the Java world. There is no doubt that it shows her unique and sexy side to web developers - spring MVC.
Although spring has an extremely shining aura, spring MVC has unique appeal to web developers. In order to expand its charm, she also provides friendly extensions to make friends with old popular lovers such as struts. After all, every web developer has his own favorite web MVC framework, and every web MVC framework also has its own fans. At this time, in the territory of the Web MVC framework, a hundred flowers are blooming and a hundred schools of thought are contending.
There is no immortal myth, and there is no absolute public lover. Today, when spring is very popular, in order to attract more fans, she put on one gorgeous coat after another, hoping to satisfy all the fantasies of all web development losers about the goddess. In this way, some previous fans feel that spring has lost its original purity, and spring MVC has gradually become less attractive. At this time, some of the earliest fans began to change their goals, using spring as a prototype or relying on, and became popular in some new projects such as play framework and JFinal.
The days will always go on. The world of web development is changing too fast. Maybe in a few years, spring, the popular lover, will be out of date, and there will always be new people coming out.At the end of this story, Brother Xun’s words continue: The same road will be trampled by too many people, and it may slowly return to desolation.
PS: The above is just a small trace of myself as a loser in the Java web development world. Looking back now: The so-called framework is just a tool to help you complete some basic and trivial work, so that you can better focus on your business logic. Don’t put the root on its head, frame it for the sake of the frame. For a new project, if you have enough time, you can learn about it carefully and select carefully; if time does not allow, decisively choose the one you are most familiar with and trustworthy about...
Java itself is dancing with shackles.
Learning Struts can be painful.
But I can tell you that Spring is more complicated than that.
So learning Struts is a necessary course for Java EE.
However, I personally am not very optimistic about Java EE now. Instead, I am more interested in Android development. So I am not familiar with other frameworks. For example, Play Framework and the like.
I don’t know what mainstream framework is used in enterprise development, but in javaEE, the SSH (spring struts hibernate) framework is more important.
Spring is the mainstream choice as a framework that integrates other frameworks.
If you want to use MVC, you can consider using Spring MVC or Struts.
IoC If you want to use Spring IoC, you can use a lightweight implementation from Google.
Depending on the actual situation of your project, you can consider using ORM or traditional JDBC.
The more ORM frameworks are Hibernate and iBatis.
You can listen to the following story, borrowing a sentence from Brother Xun:
PS: The above is just a small trace of myself as a loser in the Java web development world. Looking back now:
The so-called framework is just a tool to help you complete some basic and trivial work, so that you can better focus on your business logic. Don’t put the root on its head, frame it for the sake of the frame. For a new project, if you have enough time, you can learn about it carefully and select carefully; if time does not allow, decisively choose the one you are most familiar with and trustworthy about...
To summarize: SSH.
Java itself is dancing with shackles.
Learning Struts can be painful.
But I can tell you that Spring is more complicated than that.
So learning Struts is a necessary course for Java EE.
However, I personally am not very optimistic about Java EE now. Instead, I am more interested in Android development. So I am not familiar with other frameworks. For example, Play Framework and the like.
Spring framework is basically a must. For companies that use Java, most application frameworks are based on spring framework.
If you think struts is complicated, try spring mvc.
I don’t know what mainstream framework is used in enterprise development, but in javaEE, the SSH (spring struts hibernate) framework is more important.
I don’t know what framework is generally used, but you can try Google Web Toolkit
SSH, SSI But I recommend Jfinal on OSC
Spring is the mainstream choice as a framework that integrates other frameworks. If you want to use MVC, you can consider using Spring MVC or Struts. IoC If you want to use Spring IoC, you can use a lightweight implementation from Google. Depending on the actual situation of your project, you can consider using ORM or traditional JDBC. The more ORM frameworks are Hibernate and iBatis.
Use SpringMVC, the Struts framework feels a bit outdated, or encapsulate it yourself
Spring MVC or Jersey