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初始化完成)


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM