断点到:

org.springframework.beans.factory.support.DefaultListableBeanFactory#getBeanDefinitionCount

 

Spring中查看加载配置文件中 加载类的个数及详情

 

显示该配置文件加载个数日志:

DEBUG o.s.b.f.xml.XmlBeanDefinitionReader - Loaded 32 bean definitions from location pattern [classpath:ApplicationContext.xml]

 

之所以会相差四个,是因为减去之前加载类:

org.springframework.beans.factory.xml.XmlBeanDefinitionReader#registerBeanDefinitions:509

Spring中查看加载配置文件中 加载类的个数及详情

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-06
  • 2022-12-23
  • 2021-11-24
  • 2021-08-10
猜你喜欢
  • 2022-12-23
  • 2021-11-07
  • 2022-02-05
  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
  • 2021-05-27
相关资源
相似解决方案