美文网首页
学习 spring mvc

学习 spring mvc

作者: feiai | 来源:发表于2018-03-02 10:44 被阅读0次

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";

相关文章

网友评论

      本文标题:学习 spring mvc

      本文链接:https://www.haomeiwen.com/subject/btooxftx.html