Spring MVC Learning------------core classes and interfaces

Source: Internet
Author: User

Core classes and Interfaces:

Let's take a look at some important interfaces and classes. Now do not know what they are do not matter, first mixed face ripe, for later know them to play a foundation.

Dispatcherservlet--Front Controller

Handlermapping interface--mapping of processing requests

Implementation classes for the Handlermapping interface:

simpleurlhandlermapping mapping a URL to a controller through a configuration file

defaultannotationhandlermapping maps a URL to a controller class via annotations

Handleradapter interface--mapping of processing requests

The Annotationmethodhandleradapter class, through annotations, maps a URL to the method of the Controller class

Controller interface--controllers

Since we have used the @controller annotation, the class that added the @controller annotation annotation can assume the responsibility of the Controller (Action),

So we don't have to use this interface.

Handlerinterceptor interface--Interceptor

Without graphs, we implement this interface ourselves to complete the work of the Interceptor.

Implementation class for the Viewresolver interface

The Urlbasedviewresolver class passes a configuration file and gives a view name to the

Internalresourceviewresolver class, than the above class, joined the JSTL support

View interface

Jstlview class

Localresolver interface

Handlerexceptionresolver interface--Exception handling

Simplemappingexceptionresolver Implementation Class

Modelandview class

No diagram.


This paper draws on http://elf8848.iteye.com/blog/875830/

Copyright NOTICE: Welcome reprint, Hope in your reprint at the same time, add the original address, thank you with

Spring MVC Learning------------core classes and interfaces

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.