1. mvc 主要类 DispatcherServlet
class DispatcherServlet ->
extends FrameworkServlet ->
extends HttpServletBean implements ApplicationContextAware
(abstract class HttpServletBean extends HttpServlet(servlet3.jar)implements EnvironmentCapable(spring getEnvironment()), EnvironmentAware( spring setEnvironment())
2. DispathcerServlet 类
beanfactory工厂中 - MultipartResolver(interface)负责解析文件上传的对象(Well-known bean name)
public static final StringMULTIPART_RESOLVER_BEAN_NAME ="multipartResolver";
beanfactory工厂中 - LocaleResolver(interface)负责国际化解析的对象(Well-known bean name)
public static final StringLOCALE_RESOLVER_BEAN_NAME ="localeResolver";
/** Well-known name for the ThemeResolver object in the bean factory for this namespace. */
public static final StringTHEME_RESOLVER_BEAN_NAME ="themeResolver";
网友评论