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