当前位置:首页 > Spring > 正文内容

Spring 加载bean

淙嶙7年前 (2018-09-06)Spring943
>org.springframework.context.support.ClassPathXmlApplicationContext
  >org.springframework.context.support.ClassPathXmlApplicationContext#ClassPathXmlApplicationContext(java.lang.String[], boolean, org.springframework.context.ApplicationContext)
    >org.springframework.context.support.AbstractRefreshableConfigApplicationContext#setConfigLocations
      >org.springframework.context.support.AbstractRefreshableConfigApplicationContext#resolvePath
        >org.springframework.context.support.AbstractApplicationContext#getEnvironment
          >org.springframework.context.support.AbstractApplicationContext#createEnvironment 
            >org.springframework.core.env.StandardEnvironment  //加载默认环境信息
        >org.springframework.core.env.AbstractEnvironment#resolveRequiredPlaceholders  实现类:org.springframework.core.env.AbstractPropertyResolver#resolveRequiredPlaceholders
          >org.springframework.core.env.AbstractPropertyResolver#createPlaceholderHelper    
            >org.springframework.util.PropertyPlaceholderHelper
          >org.springframework.core.env.AbstractPropertyResolver#doResolvePlaceholders
            >org.springframework.util.PropertyPlaceholderHelper#replacePlaceholders(java.lang.String, org.springframework.util.PropertyPlaceholderHelper.PlaceholderResolver)
              >org.springframework.util.PropertyPlaceholderHelper#parseStringValue  --META-INF/spring/dubbo-demo-provider.xml

    >org.springframework.context.support.AbstractApplicationContext#refresh
      >org.springframework.context.support.AbstractApplicationContext#prepareRefresh  // Prepare this context for refreshing.
      >org.springframework.context.support.AbstractApplicationContext#obtainFreshBeanFactory
        >org.springframework.context.support.AbstractRefreshableApplicationContext#createBeanFactory
            >org.springframework.beans.factory.support.DefaultListableBeanFactory#DefaultListableBeanFactory(org.springframework.beans.factory.BeanFactory)
        >org.springframework.context.support.AbstractRefreshableApplicationContext#customizeBeanFactory XX
        >org.springframework.context.support.AbstractXmlApplicationContext#loadBeanDefinitions(org.springframework.beans.factory.support.DefaultListableBeanFactory)
          >org.springframework.beans.factory.xml.XmlBeanDefinitionReader#XmlBeanDefinitionReader
            >org.springframework.beans.factory.support.AbstractBeanDefinitionReader#AbstractBeanDefinitionReader  this.resourceLoader = new PathMatchingResourcePatternResolver(); 
          >org.springframework.context.support.AbstractXmlApplicationContext#initBeanDefinitionReader
          >org.springframework.context.support.AbstractXmlApplicationContext#loadBeanDefinitions(org.springframework.beans.factory.xml.XmlBeanDefinitionReader)
            >org.springframework.context.support.AbstractRefreshableConfigApplicationContext#getConfigLocations
          >org.springframework.beans.factory.support.AbstractBeanDefinitionReader#loadBeanDefinitions(java.lang.String...)  
      >org.springframework.context.support.AbstractRefreshableApplicationContext#getBeanFactory 
      >org.springframework.context.support.AbstractApplicationContext#prepareBeanFactory
        >org.springframework.context.support.ApplicationContextAwareProcessor#ApplicationContextAwareProcessor
          >org.springframework.beans.factory.config.EmbeddedValueResolver
            >org.springframework.beans.factory.config.BeanExpressionContext
      >org.springframework.context.support.AbstractApplicationContext#invokeBeanFactoryPostProcessors
      >org.springframework.context.support.AbstractApplicationContext#registerBeanPostProcessors
      >org.springframework.context.support.AbstractApplicationContext#initMessageSource
      >org.springframework.context.support.AbstractApplicationContext#initApplicationEventMulticaster  //单利多列注册

相关文章

spring 源码解读

spring 源码解读

>org.springframework.web.context.ContextLoaderListener#contextInitialized >org.springframew...

SpringMVC通过url请求到Controller的过程

SpringMVC通过url请求到Controller的过程

>org.springframework.web.servlet.FrameworkServlet#doGet >org.springframework.web.servlet.Fr...

springboot分页-及问题排查

springboot分页-及问题排查

1.正常流程引入依赖jar包 <dependency> <groupId>com.github.pagehelper</groupId> <...

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。