spring加载过程简析

INFO: Initializing Spring root WebApplicationContext
INFO : org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started(开始初始化web application 环境)
INFO : org.springframework.web.context.support.XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Sat Sep 27 14:54:11 CST 2014]; root of context hierarchy(刷新根web application 环境)
INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/spring/root-context.xml](从root-context.xml加载bean定义)
INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [spring-hibernate-inmemory.xml](这个是root-context.xml import的bean定义)
INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [spring-beans.xml](这个是root-context.xml import的bean定义)
WARN : org.hibernate.dialect.DerbyDialect - HHH000430: The DerbyDialect dialect has been deprecated; use one of the version-specific dialects instead
INFO : org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 20672 ms(根web application 环境初始化完成)
九月 27, 2014 2:54:31 下午 org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'appServlet'(初始化spring定义的dispatcher servlet)
INFO : org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'appServlet': initialization started(开始初始化)
INFO : org.springframework.web.context.support.XmlWebApplicationContext - Refreshing WebApplicationContext for namespace 'appServlet-servlet': startup date [Sat Sep 27 14:54:31 CST 2014]; parent: Root WebApplicationContext(好像是加载名称为appservlet-servlet的web context)
INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/spring/appServlet/servlet-context.xml](从servlet-context加载bean定义)
INFO : org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring(自动注入注解定义的依赖)
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/home],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String com.test.mvc1.HomeController.home(java.util.Locale,org.springframework.ui.Model)(将/home映射到方法com.test.mvc1.HomeController.home)
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/user/count],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.springframework.web.servlet.ModelAndView com.test.mvc1.UserController.userCount()(RequestMappingHandlerMapping将请求/user/count映射到方法om.test.mvc1.UserController.userCount)
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: WebApplicationContext for namespace 'appServlet-servlet': startup date [Sat Sep 27 14:54:31 CST 2014]; parent: Root WebApplicationContext(RequestMappingHandlerAdapter适配器查找appServlet-servlet的controller通知)
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: WebApplicationContext for namespace 'appServlet-servlet': startup date [Sat Sep 27 14:54:31 CST 2014]; parent: Root WebApplicationContext(并发RequestMappingHandlerAdapter适配器查找appServlet-servlet的controller通知)
INFO : org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/resources/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0'(SimpleUrlHandlerMapping将<resources mapping="/resources/**" location="/resources/" />定义的资源路径/resources/**映射到/resources/路径下)
INFO : org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'appServlet': initialization completed in 4140 ms(appServlet初始化完成)

原文地址:https://www.cnblogs.com/javaleon/p/3996476.html