springmvc <mvc:default-servlet-handler/> & <mvc:annotation-driven>

1. mvc 标签内部加载的基础类:

1). <mvc:view-controller>

1 org.springframework.web.servlet.handler.SimpleUrlHandlerMapping
2 org.springframework.web.servlet.mvc.ParameterizableViewController

 

2). <mvc:default-servlet-handler/>

1 org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler
2 org.springframework.web.servlet.handler.SimpleUrlHandlerMapping
3 org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping
4 org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter
5 org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter
6 mvcHandlerMappingIntrospector

 

3). <mvc:annotation-driven>

1 org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
2 org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter
3 内部类:CompositeUriComponentsContributorFactoryBean
4 org.springframework.web.servlet.handler.ConversionServiceExposingInterceptor
5 org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver
6 org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver
7 org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver

 

2. 运行截图:

 

posted @ 2019-01-16 09:20  xiluhua  阅读(312)  评论(0编辑  收藏  举报