mvc tag

<mvc:annotation-driven>
Automatically register DefaultAnnotationHandlerMapping and AnnotationMethodHandlerAdapter required by annotation-based processors;
support automatic registration of Spring3's ConversionService;
support automatic detection and registration of JSR-303 verification framework (just put the JSR-303 implementation on the classpath );
automatically register the corresponding HttpMessageConverter (for supporting @RequestBody and @ResponseBody) (such as XML I/O converters (just put the JAXP implementation on the classpath), JSON I/O converters (just put the Jackson implementation on the classpath) Etc.    

<mvc:interceptors>
Register custom processor interceptors.
   
<mvc:view-controller>
Similar to ParameterizableViewController, select the corresponding view directly after receiving the corresponding request.
   
<mvc:resources>
Logical static resource path to physical static Resource path support.

<mvc:default-servlet-handler>
When using <url-pattern>/</url-pattern> mapping for DispatcherServlet in web.xml, it can map static
Dynamic resources (when the Spring Web MVC framework does not process the corresponding controller of the request (such as some static resources), it will be transferred to the default Servlet to respond to the static file, otherwise a 404 resource not found error will be reported.)

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327001992&siteId=291194637