java-ee - java开发web现在一般用什么mvc框架?
伊谢尔伦
伊谢尔伦 2017-04-17 11:07:48
0
21
1310

感觉struts是不是有些复杂了,
一般选择的是什么方式

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(21)
刘奇

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...

  1. 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;
  2. 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;
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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...

PHPzhong
  • Don’t use technology that you can’t control yourself.
  • No need for new and immature technologies.
  • Do not use technologies with inactive communities (cannot solve problems when encountering them).
  • Don’t frame for frame’s sake.

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template