- Spring MVC Blueprints
- Sherwin John Calleja Tragura
- 224字
- 2021-07-14 10:48:24
Overview of the Spring MVC specification
The Spring MVC framework derives its specification from the Model-View-Controller (MVC) design pattern that separates the application into layers such as business, logic, navigation and presentation. The principle behind this design pattern is to create a de-coupled or loosely-coupled architecture, which is more flexible than the tightly-coupled frameworks.
Technically, Spring MVC works starts with a DispatcherServlet
that dispatches requests to handlers, with configurable handler mappings, view resolution, locale, time zone and theme resolution, as well as support for uploading files. The default handler is based on the @Controller
and @RequestMapping
annotations, offering a wide range of flexible handling methods. With the introduction of Spring 3.0, the @Controller
mechanism also allows you to create RESTful Web sites and applications, through the @PathVariable
annotation and other features (http://docs.spring.io/).
The following diagram depicts how DispatcherServlet
manages the whole MVC framework while, at the same time, avoiding the Fat Controller syndrome.

The org.springframework.web.servlet.DispatcherServlet
is an actual servlet in the web.xml
file of your web application, declared using the standard servlet
tags. Just like any typical servlets, it recognizes request transactions through URL mappings. This servlet serves as the front controller of the whole MVC project.
Since this PWP project is written using the Spring Framework 4.x specification, the implementations always starts by declaring the DispatcherServlet
.
- Mastering Concurrency Programming with Java 8
- Learning Single:page Web Application Development
- Bulma必知必會(huì)
- RISC-V體系結(jié)構(gòu)編程與實(shí)踐(第2版)
- 零基礎(chǔ)入門(mén)學(xué)習(xí)Python(第2版)
- 微服務(wù)架構(gòu)深度解析:原理、實(shí)踐與進(jìn)階
- Learning AngularJS for .NET Developers
- SQL Server實(shí)用教程(SQL Server 2008版)
- Mastering React
- Python Interviews
- Visual Studio Code 權(quán)威指南
- Python大學(xué)實(shí)用教程
- Orchestrating Docker
- Python深度學(xué)習(xí)(第2版)
- 現(xiàn)代C++語(yǔ)言核心特性解析