spring mvc 类图
2018-05-26 00:39:21 0 举报
spring mvc
作者其他创作
大纲/内容
构造函数中引用了
getParent()
主要处理了请求,与初始化没有关系
ServletConfig
ServletRequest
ApplicationContest
1.provide configuration for an application2.readOnly when running but can be refreshed by subClass
HandlerMethod
+ operation1(params):returnType- operation2(params)- operation3()
GenericServlet(Abs)
1.hold a ServletConfig reference when init
tomcat
HttpServletBean(Abs)
WebApplicationContext
ConfigurableWebApplicationContext
FrameworkServlet(Abs)
4.implement the father's 【initServletBean】1.integrate with a Spring Application Context2. invoked after bean Properties setted3. Create the servlet WebApplicationContext5.leave a empty 【initFrameworkServlet】to be overrided
AbstractApplicationContext
onfresh和initStrategy中引用了
DispatchServlet
ApplicationContext
provide configuration for an application.
Servlet
初始化各个功能的实现类。比如异常处理、视图处理、请求映射处理等。
initWebApplicationContext()
DispatcherServlet
1.load the default property in static statement 2.have an 【 initStrategies】in its 【onRefresh】method
spring
HttpServlet(Abs)
1.override the service method,2.implement based http request method3.have no contact with 【init】
ConfigurableApplicationContext
1.Configuration and lifecycle methods are encapsulated here。2.the method (refresh)
init(config)
将Servlet与Spring容器上下文关联
主要做一些初始化的工作,将web.xml中配置的参数设置到Servlet中。比如servlet标签的子标签init-param标签中配置的参数。
ServletResponse
ServletContext
收藏
0 条评论
下一页