Java Classic face Question---2-----the difference between >SPRINGMVC and Struts2

Source: Internet
Author: User

The difference between SPRINGMVC and Struts2

The entrance to the 1.SpringMVC is Servlet;struts2 's entrance is the filter.

2.SpringMVC performance is better than Struts2, SPRINGMVC is based on method design, each request invokes a method, and Struts2 is class-based, and each send request instantiates an action.

The data transfer for model models of the 3.SpringMVC is on the method model, and the STRUTS2 model is integrated with the entire action.

4.SpringMVC uses a large number of annotations to complete the controller configuration, configuration and implementation together, while STRUTS2 uses an XML configuration to implement action control, configuration, and implementation separation.

The 5.SpringMVC can be easily used for a large number of annotations, but it is also possible to add interceptors, while STRUTS2 is implemented by interceptors.

6.SpringMVC uses more concise, the development efficiency is higher than Struts2, supports the JSR303, the processing Ajax request is convenient; Struts2 use OGNL expression to make page development more efficient than SPRINGMVC,

7.SpringMVC easy to support restful style

8.SpringMVC views have a dedicated view parser that can be customized flexibly, while STRUTS2 supports dozens of result types.

Java Classic face Question---2-----the difference between >SPRINGMVC and Struts2

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.