I. Introduction to SPRING MVC

Source: Internet
Author: User

Here is an excerpt from the introduction of Spring MVC in Open spring MVC :

Spring Web MVC is a lightweight web framework that implements the request-driven type of the Web MVC design pattern based on Java, that is, the idea of using the MVC architecture pattern, decoupling the WEB layer from responsibility, and based on the request-driven approach is to use the request-response model, The purpose of the framework is to help us simplify our development, and Spring Web MVC also simplifies our daily web development.


spring Web MVC is also an implementation of service-to-worker mode, but is optimized. The front-end controller is dispatcherservlet; The application controller is actually split into a processor mapper ( Handler Mapping) manages the management of the processor and view Resolver view management; The page Controller/action/processor is the Controller interface (contains only the Modelandview HandleRequest (Request, response)   (can also be any Pojo class), support localization (Locale) parsing, topic (Theme) parsing, and file upload, etc., providing very flexible data validation, formatting, and data binding mechanisms, and providing a powerful contract-more contractual programming support than the configuration (customary precedence principle).

There is also a piece of text about what spring MVC can do:

√ allows us to design a clean web layer and a thin web layer very simply;

√ The development of a more concise web layer;

√ Natural integration with spring framework (e.g. IOC container, AOP, etc.);

√ Provide a strong contract with more than the configuration of the contractual programming support;

√ Simple unit testing of the Web layer;

√ Support flexible URL to page controller mapping;

√ It is very easy to integrate with other view technologies, such as velocity, freemarker, and so on, because model data is not placed in a particular API, but in a model ( Map data structures are implemented and therefore easily used by other frameworks);

√ Very flexible data validation, formatting and data binding mechanism, can use any object for data binding, do not need to implement a specific framework of the API;

√ Provide a powerful set of JSP tag libraries to simplify JSP development;

√ Support flexible localization, theme and other analysis;

√ More simple exception handling;

√ Support for static resources;

√ Support restful style.

Find spring MVC so powerful! How I mastered the development of a website is not extremely easy! Here is a purely kee, give me the future of the rapid review of the information, not much of the significance of scrutiny.




I. Introduction to SPRING MVC

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.