1. The global exception handler
Annotations way
Write a method, add annotation on the class ControllerAdvice
@ExceptionHandler add annotations on the method, the value of the property is a byte array code may be provided a plurality of
xml arrangement
SimpleMappingException configuration of a bean, the property name exceptionMappings, <props> <prop key = "Full exception class name"> logical view </ prop> </ props>
2.Spring integration SpringMVC
Guide package
Xml configuration file
Configuring the Servlet SpringMVC
Spring listener configuration
Post filter configured to resolve the request garbled
Filter configuration solution PUT delete request
Configuration SpringMVC
Configuring scan packages
View resolver configuration
The default configuration does not block static resources MVC
Request parser configured RequestMapping
Spring Configuration
Configuring scan packages
Parser configuration properties
Load jsbcProperties profile
Configuration data source
Configuration JDBCTemplate
Configuring Transaction Manager
Open annotation-based transaction manager
Note: spring and springmvc parent (spring) sub (springmvc) relationships, the child can use the parent object, in turn, will not do