承接前文Spring源码情操陶冶-AbstractApplicationContext#initApplicationEventMulticaster
约定web.xml配置的contextClass为默认值XmlWebApplicationContext

直接源码AbstractRefreshableWebApplicationContext#onRefresh

	/**
	 * Initialize the theme capability.
	 */
	 protected void onRefresh() {
		 //设置themeSource,设置情况与前文一致,查找的bean为themeSource
		this.themeSource = UiApplicationContextUtils.initThemeSource(this);
	}

初始化themeSource主题源,默认使用ResourceBundleThemeSource

下节预告

Spring源码情操陶冶-AbstractApplicationContext#registerListeners

相关文章:

  • 2021-09-20
  • 2021-11-18
  • 2021-10-11
  • 2021-05-20
  • 2021-09-28
  • 2021-07-27
  • 2021-08-26
  • 2021-12-05
猜你喜欢
  • 2021-11-13
  • 2021-05-19
  • 2021-12-24
  • 2022-01-11
  • 2021-05-28
  • 2021-09-12
  • 2021-07-02
相关资源
相似解决方案