Spring的加载过程-配置文件加载过程(一)

打印 上一主题 下一主题

主题 1010|帖子 1010|积分 3030

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

x
1、原因
不知不觉已经从事java开发好几年了,成了人们口中的老司机。但是一直都是恍恍惚惚过来,对于框架底层实现一直都没有怎么了解过,只是在面试的时候背些面试题。慢慢地发现不能这样,需要振作,笑~~~~。从这篇开始,记录自己对于Spring加载过程的源码查看。
2、开始

1、在Spring加载bean并获取bean定义的常用类是ClassPathXmlApplicationContext 以及AnnotationConfigApplicationContext。ClassPathXmlApplicationContext用来读取并加载默认classpath 路径下面的配置文件,AnnotationConfigApplicationContext是加载注解@Configuration标注的配置类。我现在关注于ClassPathXmlApplicationContext。
2、新建一个maven项目,并引入spring相关jar包。
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  5.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  6.     <bean id="person" />
  7. </beans><?xml version="1.0" encoding="UTF-8"?>
  8. <beans xmlns="http://www.springframework.org/schema/beans"
  9.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  10.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  11.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  12.     <bean id="person" />
  13. </beans><dependency>
  14. <?xml version="1.0" encoding="UTF-8"?>
  15. <beans xmlns="http://www.springframework.org/schema/beans"
  16.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  17.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  18.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  19.     <bean id="person" />
  20. </beans><?xml version="1.0" encoding="UTF-8"?>
  21. <beans xmlns="http://www.springframework.org/schema/beans"
  22.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  23.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  24.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  25.     <bean id="person" />
  26. </beans><?xml version="1.0" encoding="UTF-8"?>
  27. <beans xmlns="http://www.springframework.org/schema/beans"
  28.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  29.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  30.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  31.     <bean id="person" />
  32. </beans><groupId>org.springframework.boot</groupId>
  33. <?xml version="1.0" encoding="UTF-8"?>
  34. <beans xmlns="http://www.springframework.org/schema/beans"
  35.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  36.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  37.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  38.     <bean id="person" />
  39. </beans><?xml version="1.0" encoding="UTF-8"?>
  40. <beans xmlns="http://www.springframework.org/schema/beans"
  41.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  42.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  43.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  44.     <bean id="person" />
  45. </beans><?xml version="1.0" encoding="UTF-8"?>
  46. <beans xmlns="http://www.springframework.org/schema/beans"
  47.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  48.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  49.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  50.     <bean id="person" />
  51. </beans><artifactId>spring-boot-starter-web</artifactId>
  52. <?xml version="1.0" encoding="UTF-8"?>
  53. <beans xmlns="http://www.springframework.org/schema/beans"
  54.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  55.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  56.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  57.     <bean id="person" />
  58. </beans><?xml version="1.0" encoding="UTF-8"?>
  59. <beans xmlns="http://www.springframework.org/schema/beans"
  60.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  61.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  62.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  63.     <bean id="person" />
  64. </beans><?xml version="1.0" encoding="UTF-8"?>
  65. <beans xmlns="http://www.springframework.org/schema/beans"
  66.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  67.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  68.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  69.     <bean id="person" />
  70. </beans><exclusions>
  71. <?xml version="1.0" encoding="UTF-8"?>
  72. <beans xmlns="http://www.springframework.org/schema/beans"
  73.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  74.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  75.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  76.     <bean id="person" />
  77. </beans><?xml version="1.0" encoding="UTF-8"?>
  78. <beans xmlns="http://www.springframework.org/schema/beans"
  79.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  80.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  81.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  82.     <bean id="person" />
  83. </beans><?xml version="1.0" encoding="UTF-8"?>
  84. <beans xmlns="http://www.springframework.org/schema/beans"
  85.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  86.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  87.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  88.     <bean id="person" />
  89. </beans><?xml version="1.0" encoding="UTF-8"?>
  90. <beans xmlns="http://www.springframework.org/schema/beans"
  91.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  92.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  93.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  94.     <bean id="person" />
  95. </beans>
  96. <?xml version="1.0" encoding="UTF-8"?>
  97. <beans xmlns="http://www.springframework.org/schema/beans"
  98.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  99.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  100.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  101.     <bean id="person" />
  102. </beans><?xml version="1.0" encoding="UTF-8"?>
  103. <beans xmlns="http://www.springframework.org/schema/beans"
  104.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  105.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  106.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  107.     <bean id="person" />
  108. </beans><?xml version="1.0" encoding="UTF-8"?>
  109. <beans xmlns="http://www.springframework.org/schema/beans"
  110.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  111.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  112.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  113.     <bean id="person" />
  114. </beans><?xml version="1.0" encoding="UTF-8"?>
  115. <beans xmlns="http://www.springframework.org/schema/beans"
  116.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  117.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  118.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  119.     <bean id="person" />
  120. </beans><exclusion>
  121. <?xml version="1.0" encoding="UTF-8"?>
  122. <beans xmlns="http://www.springframework.org/schema/beans"
  123.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  124.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  125.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  126.     <bean id="person" />
  127. </beans><?xml version="1.0" encoding="UTF-8"?>
  128. <beans xmlns="http://www.springframework.org/schema/beans"
  129.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  130.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  131.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  132.     <bean id="person" />
  133. </beans><?xml version="1.0" encoding="UTF-8"?>
  134. <beans xmlns="http://www.springframework.org/schema/beans"
  135.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  136.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  137.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  138.     <bean id="person" />
  139. </beans><?xml version="1.0" encoding="UTF-8"?>
  140. <beans xmlns="http://www.springframework.org/schema/beans"
  141.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  142.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  143.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  144.     <bean id="person" />
  145. </beans><?xml version="1.0" encoding="UTF-8"?>
  146. <beans xmlns="http://www.springframework.org/schema/beans"
  147.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  148.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  149.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  150.     <bean id="person" />
  151. </beans><groupId>org.springframework.boot</groupId>
  152. <?xml version="1.0" encoding="UTF-8"?>
  153. <beans xmlns="http://www.springframework.org/schema/beans"
  154.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  155.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  156.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  157.     <bean id="person" />
  158. </beans><?xml version="1.0" encoding="UTF-8"?>
  159. <beans xmlns="http://www.springframework.org/schema/beans"
  160.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  161.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  162.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  163.     <bean id="person" />
  164. </beans><?xml version="1.0" encoding="UTF-8"?>
  165. <beans xmlns="http://www.springframework.org/schema/beans"
  166.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  167.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  168.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  169.     <bean id="person" />
  170. </beans><?xml version="1.0" encoding="UTF-8"?>
  171. <beans xmlns="http://www.springframework.org/schema/beans"
  172.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  173.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  174.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  175.     <bean id="person" />
  176. </beans><?xml version="1.0" encoding="UTF-8"?>
  177. <beans xmlns="http://www.springframework.org/schema/beans"
  178.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  179.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  180.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  181.     <bean id="person" />
  182. </beans><artifactId>spring-boot-starter-logging</artifactId>
  183. <?xml version="1.0" encoding="UTF-8"?>
  184. <beans xmlns="http://www.springframework.org/schema/beans"
  185.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  186.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  187.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  188.     <bean id="person" />
  189. </beans><?xml version="1.0" encoding="UTF-8"?>
  190. <beans xmlns="http://www.springframework.org/schema/beans"
  191.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  192.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  193.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  194.     <bean id="person" />
  195. </beans><?xml version="1.0" encoding="UTF-8"?>
  196. <beans xmlns="http://www.springframework.org/schema/beans"
  197.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  198.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  199.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  200.     <bean id="person" />
  201. </beans><?xml version="1.0" encoding="UTF-8"?>
  202. <beans xmlns="http://www.springframework.org/schema/beans"
  203.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  204.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  205.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  206.     <bean id="person" />
  207. </beans></exclusion>
  208. <?xml version="1.0" encoding="UTF-8"?>
  209. <beans xmlns="http://www.springframework.org/schema/beans"
  210.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  211.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  212.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  213.     <bean id="person" />
  214. </beans><?xml version="1.0" encoding="UTF-8"?>
  215. <beans xmlns="http://www.springframework.org/schema/beans"
  216.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  217.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  218.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  219.     <bean id="person" />
  220. </beans><?xml version="1.0" encoding="UTF-8"?>
  221. <beans xmlns="http://www.springframework.org/schema/beans"
  222.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  223.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  224.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  225.     <bean id="person" />
  226. </beans><?xml version="1.0" encoding="UTF-8"?>
  227. <beans xmlns="http://www.springframework.org/schema/beans"
  228.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  229.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  230.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  231.     <bean id="person" />
  232. </beans>
  233. <?xml version="1.0" encoding="UTF-8"?>
  234. <beans xmlns="http://www.springframework.org/schema/beans"
  235.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  236.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  237.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  238.     <bean id="person" />
  239. </beans><?xml version="1.0" encoding="UTF-8"?>
  240. <beans xmlns="http://www.springframework.org/schema/beans"
  241.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  242.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  243.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  244.     <bean id="person" />
  245. </beans><?xml version="1.0" encoding="UTF-8"?>
  246. <beans xmlns="http://www.springframework.org/schema/beans"
  247.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  248.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  249.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  250.     <bean id="person" />
  251. </beans></exclusions>
  252. <?xml version="1.0" encoding="UTF-8"?>
  253. <beans xmlns="http://www.springframework.org/schema/beans"
  254.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  255.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  256.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  257.     <bean id="person" />
  258. </beans><?xml version="1.0" encoding="UTF-8"?>
  259. <beans xmlns="http://www.springframework.org/schema/beans"
  260.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  261.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  262.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  263.     <bean id="person" />
  264. </beans></dependency>
复制代码
spring-boot-starter-we会依赖引入spring-context包,定义接口以及实现类
  1. public interface Person {
  2. <?xml version="1.0" encoding="UTF-8"?>
  3. <beans xmlns="http://www.springframework.org/schema/beans"
  4.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  6.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  7.     <bean id="person" />
  8. </beans>void say();
  9. }
复制代码
  1. @Log4j2
  2. public class Teacher implements Person {
  3. <?xml version="1.0" encoding="UTF-8"?>
  4. <beans xmlns="http://www.springframework.org/schema/beans"
  5.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  6.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  7.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  8.     <bean id="person" />
  9. </beans>@Override
  10. <?xml version="1.0" encoding="UTF-8"?>
  11. <beans xmlns="http://www.springframework.org/schema/beans"
  12.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  13.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  14.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  15.     <bean id="person" />
  16. </beans>public void say() {
  17. <?xml version="1.0" encoding="UTF-8"?>
  18. <beans xmlns="http://www.springframework.org/schema/beans"
  19.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  20.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  21.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  22.     <bean id="person" />
  23. </beans><?xml version="1.0" encoding="UTF-8"?>
  24. <beans xmlns="http://www.springframework.org/schema/beans"
  25.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  26.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  27.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  28.     <bean id="person" />
  29. </beans>log.info("开始上课!");
  30. <?xml version="1.0" encoding="UTF-8"?>
  31. <beans xmlns="http://www.springframework.org/schema/beans"
  32.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  33.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  34.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  35.     <bean id="person" />
  36. </beans>}
  37. }
复制代码
编写bean.xml
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  5.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  6.     <bean id="person" />
  7. </beans>
复制代码
开始编写测试类用来测试bean加载过程:
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  5.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  6.     <bean id="person" />
  7. </beans>public static void main(String[] args) {<?xml version="1.0" encoding="UTF-8"?>
  8. <beans xmlns="http://www.springframework.org/schema/beans"
  9.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  10.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  11.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  12.     <bean id="person" />
  13. </beans><?xml version="1.0" encoding="UTF-8"?>
  14. <beans xmlns="http://www.springframework.org/schema/beans"
  15.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  16.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  17.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  18.     <bean id="person" />
  19. </beans>ApplicationContext applicationContext = new ClassPathXmlApplicationContext("bean.xml");<?xml version="1.0" encoding="UTF-8"?>
  20. <beans xmlns="http://www.springframework.org/schema/beans"
  21.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  22.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  23.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  24.     <bean id="person" />
  25. </beans><?xml version="1.0" encoding="UTF-8"?>
  26. <beans xmlns="http://www.springframework.org/schema/beans"
  27.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  28.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  29.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  30.     <bean id="person" />
  31. </beans>Teacher teacher = (Teacher) applicationContext.getBean("person");<?xml version="1.0" encoding="UTF-8"?>
  32. <beans xmlns="http://www.springframework.org/schema/beans"
  33.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  34.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  35.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  36.     <bean id="person" />
  37. </beans><?xml version="1.0" encoding="UTF-8"?>
  38. <beans xmlns="http://www.springframework.org/schema/beans"
  39.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  40.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  41.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  42.     <bean id="person" />
  43. </beans>teacher.say();<?xml version="1.0" encoding="UTF-8"?>
  44. <beans xmlns="http://www.springframework.org/schema/beans"
  45.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  46.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  47.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  48.     <bean id="person" />
  49. </beans>}
复制代码
第一行打上断点,debug开始跟着走,就会来到:
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  5.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  6.     <bean id="person" />
  7. </beans>public ClassPathXmlApplicationContext(String[] configLocations, boolean refresh, @Nullable ApplicationContext parent) throws BeansException {<?xml version="1.0" encoding="UTF-8"?>
  8. <beans xmlns="http://www.springframework.org/schema/beans"
  9.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  10.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  11.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  12.     <bean id="person" />
  13. </beans><?xml version="1.0" encoding="UTF-8"?>
  14. <beans xmlns="http://www.springframework.org/schema/beans"
  15.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  16.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  17.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  18.     <bean id="person" />
  19. </beans>super(parent);<?xml version="1.0" encoding="UTF-8"?>
  20. <beans xmlns="http://www.springframework.org/schema/beans"
  21.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  22.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  23.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  24.     <bean id="person" />
  25. </beans><?xml version="1.0" encoding="UTF-8"?>
  26. <beans xmlns="http://www.springframework.org/schema/beans"
  27.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  28.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  29.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  30.     <bean id="person" />
  31. </beans>this.setConfigLocations(configLocations);<?xml version="1.0" encoding="UTF-8"?>
  32. <beans xmlns="http://www.springframework.org/schema/beans"
  33.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  34.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  35.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  36.     <bean id="person" />
  37. </beans><?xml version="1.0" encoding="UTF-8"?>
  38. <beans xmlns="http://www.springframework.org/schema/beans"
  39.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  40.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  41.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  42.     <bean id="person" />
  43. </beans>if (refresh) {<?xml version="1.0" encoding="UTF-8"?>
  44. <beans xmlns="http://www.springframework.org/schema/beans"
  45.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  46.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  47.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  48.     <bean id="person" />
  49. </beans><?xml version="1.0" encoding="UTF-8"?>
  50. <beans xmlns="http://www.springframework.org/schema/beans"
  51.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  52.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  53.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  54.     <bean id="person" />
  55. </beans><?xml version="1.0" encoding="UTF-8"?>
  56. <beans xmlns="http://www.springframework.org/schema/beans"
  57.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  58.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  59.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  60.     <bean id="person" />
  61. </beans>this.refresh();<?xml version="1.0" encoding="UTF-8"?>
  62. <beans xmlns="http://www.springframework.org/schema/beans"
  63.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  64.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  65.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  66.     <bean id="person" />
  67. </beans><?xml version="1.0" encoding="UTF-8"?>
  68. <beans xmlns="http://www.springframework.org/schema/beans"
  69.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  70.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  71.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  72.     <bean id="person" />
  73. </beans>}<?xml version="1.0" encoding="UTF-8"?>
  74. <beans xmlns="http://www.springframework.org/schema/beans"
  75.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  76.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  77.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  78.     <bean id="person" />
  79. </beans>}<?xml version="1.0" encoding="UTF-8"?>
  80. <beans xmlns="http://www.springframework.org/schema/beans"
  81.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  82.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  83.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  84.     <bean id="person" />
  85. </beans><?xml version="1.0" encoding="UTF-8"?>
  86. <beans xmlns="http://www.springframework.org/schema/beans"
  87.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  88.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  89.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  90.     <bean id="person" />
  91. </beans>
复制代码
点击this.refresh()方法进入就来到了最核心的地方,这里弄懂了,bean加载就弄懂了:
  1. public void refresh() throws BeansException, IllegalStateException {<?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  5.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  6.     <bean id="person" />
  7. </beans><?xml version="1.0" encoding="UTF-8"?>
  8. <beans xmlns="http://www.springframework.org/schema/beans"
  9.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  10.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  11.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  12.     <bean id="person" />
  13. </beans>synchronized(this.startupShutdownMonitor) {<?xml version="1.0" encoding="UTF-8"?>
  14. <beans xmlns="http://www.springframework.org/schema/beans"
  15.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  16.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  17.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  18.     <bean id="person" />
  19. </beans><?xml version="1.0" encoding="UTF-8"?>
  20. <beans xmlns="http://www.springframework.org/schema/beans"
  21.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  22.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  23.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  24.     <bean id="person" />
  25. </beans><?xml version="1.0" encoding="UTF-8"?>
  26. <beans xmlns="http://www.springframework.org/schema/beans"
  27.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  28.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  29.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  30.     <bean id="person" />
  31. </beans>StartupStep contextRefresh = this.applicationStartup.start("spring.context.refresh");<?xml version="1.0" encoding="UTF-8"?>
  32. <beans xmlns="http://www.springframework.org/schema/beans"
  33.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  34.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  35.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  36.     <bean id="person" />
  37. </beans><?xml version="1.0" encoding="UTF-8"?>
  38. <beans xmlns="http://www.springframework.org/schema/beans"
  39.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  40.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  41.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  42.     <bean id="person" />
  43. </beans><?xml version="1.0" encoding="UTF-8"?>
  44. <beans xmlns="http://www.springframework.org/schema/beans"
  45.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  46.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  47.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  48.     <bean id="person" />
  49. </beans>this.prepareRefresh();<?xml version="1.0" encoding="UTF-8"?>
  50. <beans xmlns="http://www.springframework.org/schema/beans"
  51.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  52.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  53.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  54.     <bean id="person" />
  55. </beans><?xml version="1.0" encoding="UTF-8"?>
  56. <beans xmlns="http://www.springframework.org/schema/beans"
  57.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  58.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  59.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  60.     <bean id="person" />
  61. </beans><?xml version="1.0" encoding="UTF-8"?>
  62. <beans xmlns="http://www.springframework.org/schema/beans"
  63.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  64.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  65.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  66.     <bean id="person" />
  67. </beans>ConfigurableListableBeanFactory beanFactory = this.obtainFreshBeanFactory();<?xml version="1.0" encoding="UTF-8"?>
  68. <beans xmlns="http://www.springframework.org/schema/beans"
  69.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  70.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  71.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  72.     <bean id="person" />
  73. </beans><?xml version="1.0" encoding="UTF-8"?>
  74. <beans xmlns="http://www.springframework.org/schema/beans"
  75.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  76.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  77.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  78.     <bean id="person" />
  79. </beans><?xml version="1.0" encoding="UTF-8"?>
  80. <beans xmlns="http://www.springframework.org/schema/beans"
  81.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  82.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  83.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  84.     <bean id="person" />
  85. </beans>this.prepareBeanFactory(beanFactory);<?xml version="1.0" encoding="UTF-8"?>
  86. <beans xmlns="http://www.springframework.org/schema/beans"
  87.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  88.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  89.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  90.     <bean id="person" />
  91. </beans><?xml version="1.0" encoding="UTF-8"?>
  92. <beans xmlns="http://www.springframework.org/schema/beans"
  93.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  94.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  95.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  96.     <bean id="person" />
  97. </beans><?xml version="1.0" encoding="UTF-8"?>
  98. <beans xmlns="http://www.springframework.org/schema/beans"
  99.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  100.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  101.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  102.     <bean id="person" />
  103. </beans>try {<?xml version="1.0" encoding="UTF-8"?>
  104. <beans xmlns="http://www.springframework.org/schema/beans"
  105.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  106.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  107.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  108.     <bean id="person" />
  109. </beans><?xml version="1.0" encoding="UTF-8"?>
  110. <beans xmlns="http://www.springframework.org/schema/beans"
  111.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  112.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  113.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  114.     <bean id="person" />
  115. </beans><?xml version="1.0" encoding="UTF-8"?>
  116. <beans xmlns="http://www.springframework.org/schema/beans"
  117.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  118.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  119.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  120.     <bean id="person" />
  121. </beans><?xml version="1.0" encoding="UTF-8"?>
  122. <beans xmlns="http://www.springframework.org/schema/beans"
  123.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  124.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  125.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  126.     <bean id="person" />
  127. </beans>this.postProcessBeanFactory(beanFactory);<?xml version="1.0" encoding="UTF-8"?>
  128. <beans xmlns="http://www.springframework.org/schema/beans"
  129.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  130.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  131.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  132.     <bean id="person" />
  133. </beans><?xml version="1.0" encoding="UTF-8"?>
  134. <beans xmlns="http://www.springframework.org/schema/beans"
  135.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  136.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  137.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  138.     <bean id="person" />
  139. </beans><?xml version="1.0" encoding="UTF-8"?>
  140. <beans xmlns="http://www.springframework.org/schema/beans"
  141.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  142.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  143.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  144.     <bean id="person" />
  145. </beans><?xml version="1.0" encoding="UTF-8"?>
  146. <beans xmlns="http://www.springframework.org/schema/beans"
  147.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  148.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  149.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  150.     <bean id="person" />
  151. </beans>StartupStep beanPostProcess = this.applicationStartup.start("spring.context.beans.post-process");<?xml version="1.0" encoding="UTF-8"?>
  152. <beans xmlns="http://www.springframework.org/schema/beans"
  153.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  154.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  155.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  156.     <bean id="person" />
  157. </beans><?xml version="1.0" encoding="UTF-8"?>
  158. <beans xmlns="http://www.springframework.org/schema/beans"
  159.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  160.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  161.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  162.     <bean id="person" />
  163. </beans><?xml version="1.0" encoding="UTF-8"?>
  164. <beans xmlns="http://www.springframework.org/schema/beans"
  165.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  166.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  167.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  168.     <bean id="person" />
  169. </beans><?xml version="1.0" encoding="UTF-8"?>
  170. <beans xmlns="http://www.springframework.org/schema/beans"
  171.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  172.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  173.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  174.     <bean id="person" />
  175. </beans>this.invokeBeanFactoryPostProcessors(beanFactory);<?xml version="1.0" encoding="UTF-8"?>
  176. <beans xmlns="http://www.springframework.org/schema/beans"
  177.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  178.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  179.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  180.     <bean id="person" />
  181. </beans><?xml version="1.0" encoding="UTF-8"?>
  182. <beans xmlns="http://www.springframework.org/schema/beans"
  183.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  184.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  185.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  186.     <bean id="person" />
  187. </beans><?xml version="1.0" encoding="UTF-8"?>
  188. <beans xmlns="http://www.springframework.org/schema/beans"
  189.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  190.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  191.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  192.     <bean id="person" />
  193. </beans><?xml version="1.0" encoding="UTF-8"?>
  194. <beans xmlns="http://www.springframework.org/schema/beans"
  195.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  196.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  197.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  198.     <bean id="person" />
  199. </beans>this.registerBeanPostProcessors(beanFactory);<?xml version="1.0" encoding="UTF-8"?>
  200. <beans xmlns="http://www.springframework.org/schema/beans"
  201.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  202.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  203.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  204.     <bean id="person" />
  205. </beans><?xml version="1.0" encoding="UTF-8"?>
  206. <beans xmlns="http://www.springframework.org/schema/beans"
  207.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  208.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  209.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  210.     <bean id="person" />
  211. </beans><?xml version="1.0" encoding="UTF-8"?>
  212. <beans xmlns="http://www.springframework.org/schema/beans"
  213.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  214.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  215.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  216.     <bean id="person" />
  217. </beans><?xml version="1.0" encoding="UTF-8"?>
  218. <beans xmlns="http://www.springframework.org/schema/beans"
  219.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  220.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  221.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  222.     <bean id="person" />
  223. </beans>beanPostProcess.end();<?xml version="1.0" encoding="UTF-8"?>
  224. <beans xmlns="http://www.springframework.org/schema/beans"
  225.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  226.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  227.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  228.     <bean id="person" />
  229. </beans><?xml version="1.0" encoding="UTF-8"?>
  230. <beans xmlns="http://www.springframework.org/schema/beans"
  231.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  232.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  233.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  234.     <bean id="person" />
  235. </beans><?xml version="1.0" encoding="UTF-8"?>
  236. <beans xmlns="http://www.springframework.org/schema/beans"
  237.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  238.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  239.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  240.     <bean id="person" />
  241. </beans><?xml version="1.0" encoding="UTF-8"?>
  242. <beans xmlns="http://www.springframework.org/schema/beans"
  243.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  244.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  245.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  246.     <bean id="person" />
  247. </beans>this.initMessageSource();<?xml version="1.0" encoding="UTF-8"?>
  248. <beans xmlns="http://www.springframework.org/schema/beans"
  249.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  250.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  251.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  252.     <bean id="person" />
  253. </beans><?xml version="1.0" encoding="UTF-8"?>
  254. <beans xmlns="http://www.springframework.org/schema/beans"
  255.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  256.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  257.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  258.     <bean id="person" />
  259. </beans><?xml version="1.0" encoding="UTF-8"?>
  260. <beans xmlns="http://www.springframework.org/schema/beans"
  261.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  262.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  263.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  264.     <bean id="person" />
  265. </beans><?xml version="1.0" encoding="UTF-8"?>
  266. <beans xmlns="http://www.springframework.org/schema/beans"
  267.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  268.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  269.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  270.     <bean id="person" />
  271. </beans>this.initApplicationEventMulticaster();<?xml version="1.0" encoding="UTF-8"?>
  272. <beans xmlns="http://www.springframework.org/schema/beans"
  273.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  274.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  275.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  276.     <bean id="person" />
  277. </beans><?xml version="1.0" encoding="UTF-8"?>
  278. <beans xmlns="http://www.springframework.org/schema/beans"
  279.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  280.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  281.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  282.     <bean id="person" />
  283. </beans><?xml version="1.0" encoding="UTF-8"?>
  284. <beans xmlns="http://www.springframework.org/schema/beans"
  285.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  286.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  287.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  288.     <bean id="person" />
  289. </beans><?xml version="1.0" encoding="UTF-8"?>
  290. <beans xmlns="http://www.springframework.org/schema/beans"
  291.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  292.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  293.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  294.     <bean id="person" />
  295. </beans>this.onRefresh();<?xml version="1.0" encoding="UTF-8"?>
  296. <beans xmlns="http://www.springframework.org/schema/beans"
  297.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  298.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  299.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  300.     <bean id="person" />
  301. </beans><?xml version="1.0" encoding="UTF-8"?>
  302. <beans xmlns="http://www.springframework.org/schema/beans"
  303.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  304.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  305.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  306.     <bean id="person" />
  307. </beans><?xml version="1.0" encoding="UTF-8"?>
  308. <beans xmlns="http://www.springframework.org/schema/beans"
  309.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  310.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  311.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  312.     <bean id="person" />
  313. </beans><?xml version="1.0" encoding="UTF-8"?>
  314. <beans xmlns="http://www.springframework.org/schema/beans"
  315.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  316.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  317.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  318.     <bean id="person" />
  319. </beans>this.registerListeners();<?xml version="1.0" encoding="UTF-8"?>
  320. <beans xmlns="http://www.springframework.org/schema/beans"
  321.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  322.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  323.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  324.     <bean id="person" />
  325. </beans><?xml version="1.0" encoding="UTF-8"?>
  326. <beans xmlns="http://www.springframework.org/schema/beans"
  327.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  328.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  329.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  330.     <bean id="person" />
  331. </beans><?xml version="1.0" encoding="UTF-8"?>
  332. <beans xmlns="http://www.springframework.org/schema/beans"
  333.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  334.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  335.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  336.     <bean id="person" />
  337. </beans><?xml version="1.0" encoding="UTF-8"?>
  338. <beans xmlns="http://www.springframework.org/schema/beans"
  339.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  340.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  341.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  342.     <bean id="person" />
  343. </beans>this.finishBeanFactoryInitialization(beanFactory);<?xml version="1.0" encoding="UTF-8"?>
  344. <beans xmlns="http://www.springframework.org/schema/beans"
  345.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  346.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  347.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  348.     <bean id="person" />
  349. </beans><?xml version="1.0" encoding="UTF-8"?>
  350. <beans xmlns="http://www.springframework.org/schema/beans"
  351.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  352.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  353.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  354.     <bean id="person" />
  355. </beans><?xml version="1.0" encoding="UTF-8"?>
  356. <beans xmlns="http://www.springframework.org/schema/beans"
  357.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  358.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  359.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  360.     <bean id="person" />
  361. </beans><?xml version="1.0" encoding="UTF-8"?>
  362. <beans xmlns="http://www.springframework.org/schema/beans"
  363.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  364.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  365.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  366.     <bean id="person" />
  367. </beans>this.finishRefresh();<?xml version="1.0" encoding="UTF-8"?>
  368. <beans xmlns="http://www.springframework.org/schema/beans"
  369.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  370.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  371.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  372.     <bean id="person" />
  373. </beans><?xml version="1.0" encoding="UTF-8"?>
  374. <beans xmlns="http://www.springframework.org/schema/beans"
  375.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  376.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  377.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  378.     <bean id="person" />
  379. </beans><?xml version="1.0" encoding="UTF-8"?>
  380. <beans xmlns="http://www.springframework.org/schema/beans"
  381.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  382.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  383.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  384.     <bean id="person" />
  385. </beans>} catch (BeansException var10) {<?xml version="1.0" encoding="UTF-8"?>
  386. <beans xmlns="http://www.springframework.org/schema/beans"
  387.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  388.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  389.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  390.     <bean id="person" />
  391. </beans><?xml version="1.0" encoding="UTF-8"?>
  392. <beans xmlns="http://www.springframework.org/schema/beans"
  393.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  394.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  395.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  396.     <bean id="person" />
  397. </beans><?xml version="1.0" encoding="UTF-8"?>
  398. <beans xmlns="http://www.springframework.org/schema/beans"
  399.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  400.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  401.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  402.     <bean id="person" />
  403. </beans><?xml version="1.0" encoding="UTF-8"?>
  404. <beans xmlns="http://www.springframework.org/schema/beans"
  405.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  406.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  407.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  408.     <bean id="person" />
  409. </beans>if (this.logger.isWarnEnabled()) {<?xml version="1.0" encoding="UTF-8"?>
  410. <beans xmlns="http://www.springframework.org/schema/beans"
  411.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  412.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  413.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  414.     <bean id="person" />
  415. </beans><?xml version="1.0" encoding="UTF-8"?>
  416. <beans xmlns="http://www.springframework.org/schema/beans"
  417.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  418.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  419.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  420.     <bean id="person" />
  421. </beans><?xml version="1.0" encoding="UTF-8"?>
  422. <beans xmlns="http://www.springframework.org/schema/beans"
  423.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  424.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  425.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  426.     <bean id="person" />
  427. </beans><?xml version="1.0" encoding="UTF-8"?>
  428. <beans xmlns="http://www.springframework.org/schema/beans"
  429.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  430.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  431.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  432.     <bean id="person" />
  433. </beans><?xml version="1.0" encoding="UTF-8"?>
  434. <beans xmlns="http://www.springframework.org/schema/beans"
  435.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  436.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  437.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  438.     <bean id="person" />
  439. </beans>this.logger.warn("Exception encountered during context initialization - cancelling refresh attempt: " + var10);<?xml version="1.0" encoding="UTF-8"?>
  440. <beans xmlns="http://www.springframework.org/schema/beans"
  441.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  442.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  443.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  444.     <bean id="person" />
  445. </beans><?xml version="1.0" encoding="UTF-8"?>
  446. <beans xmlns="http://www.springframework.org/schema/beans"
  447.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  448.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  449.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  450.     <bean id="person" />
  451. </beans><?xml version="1.0" encoding="UTF-8"?>
  452. <beans xmlns="http://www.springframework.org/schema/beans"
  453.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  454.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  455.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  456.     <bean id="person" />
  457. </beans><?xml version="1.0" encoding="UTF-8"?>
  458. <beans xmlns="http://www.springframework.org/schema/beans"
  459.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  460.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  461.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  462.     <bean id="person" />
  463. </beans>}<?xml version="1.0" encoding="UTF-8"?>
  464. <beans xmlns="http://www.springframework.org/schema/beans"
  465.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  466.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  467.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  468.     <bean id="person" />
  469. </beans><?xml version="1.0" encoding="UTF-8"?>
  470. <beans xmlns="http://www.springframework.org/schema/beans"
  471.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  472.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  473.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  474.     <bean id="person" />
  475. </beans><?xml version="1.0" encoding="UTF-8"?>
  476. <beans xmlns="http://www.springframework.org/schema/beans"
  477.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  478.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  479.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  480.     <bean id="person" />
  481. </beans><?xml version="1.0" encoding="UTF-8"?>
  482. <beans xmlns="http://www.springframework.org/schema/beans"
  483.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  484.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  485.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  486.     <bean id="person" />
  487. </beans>this.destroyBeans();<?xml version="1.0" encoding="UTF-8"?>
  488. <beans xmlns="http://www.springframework.org/schema/beans"
  489.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  490.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  491.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  492.     <bean id="person" />
  493. </beans><?xml version="1.0" encoding="UTF-8"?>
  494. <beans xmlns="http://www.springframework.org/schema/beans"
  495.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  496.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  497.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  498.     <bean id="person" />
  499. </beans><?xml version="1.0" encoding="UTF-8"?>
  500. <beans xmlns="http://www.springframework.org/schema/beans"
  501.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  502.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  503.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  504.     <bean id="person" />
  505. </beans><?xml version="1.0" encoding="UTF-8"?>
  506. <beans xmlns="http://www.springframework.org/schema/beans"
  507.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  508.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  509.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  510.     <bean id="person" />
  511. </beans>this.cancelRefresh(var10);<?xml version="1.0" encoding="UTF-8"?>
  512. <beans xmlns="http://www.springframework.org/schema/beans"
  513.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  514.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  515.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  516.     <bean id="person" />
  517. </beans><?xml version="1.0" encoding="UTF-8"?>
  518. <beans xmlns="http://www.springframework.org/schema/beans"
  519.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  520.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  521.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  522.     <bean id="person" />
  523. </beans><?xml version="1.0" encoding="UTF-8"?>
  524. <beans xmlns="http://www.springframework.org/schema/beans"
  525.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  526.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  527.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  528.     <bean id="person" />
  529. </beans><?xml version="1.0" encoding="UTF-8"?>
  530. <beans xmlns="http://www.springframework.org/schema/beans"
  531.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  532.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  533.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  534.     <bean id="person" />
  535. </beans>throw var10;<?xml version="1.0" encoding="UTF-8"?>
  536. <beans xmlns="http://www.springframework.org/schema/beans"
  537.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  538.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  539.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  540.     <bean id="person" />
  541. </beans><?xml version="1.0" encoding="UTF-8"?>
  542. <beans xmlns="http://www.springframework.org/schema/beans"
  543.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  544.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  545.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  546.     <bean id="person" />
  547. </beans><?xml version="1.0" encoding="UTF-8"?>
  548. <beans xmlns="http://www.springframework.org/schema/beans"
  549.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  550.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  551.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  552.     <bean id="person" />
  553. </beans>} finally {<?xml version="1.0" encoding="UTF-8"?>
  554. <beans xmlns="http://www.springframework.org/schema/beans"
  555.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  556.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  557.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  558.     <bean id="person" />
  559. </beans><?xml version="1.0" encoding="UTF-8"?>
  560. <beans xmlns="http://www.springframework.org/schema/beans"
  561.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  562.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  563.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  564.     <bean id="person" />
  565. </beans><?xml version="1.0" encoding="UTF-8"?>
  566. <beans xmlns="http://www.springframework.org/schema/beans"
  567.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  568.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  569.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  570.     <bean id="person" />
  571. </beans><?xml version="1.0" encoding="UTF-8"?>
  572. <beans xmlns="http://www.springframework.org/schema/beans"
  573.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  574.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  575.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  576.     <bean id="person" />
  577. </beans>this.resetCommonCaches();<?xml version="1.0" encoding="UTF-8"?>
  578. <beans xmlns="http://www.springframework.org/schema/beans"
  579.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  580.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  581.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  582.     <bean id="person" />
  583. </beans><?xml version="1.0" encoding="UTF-8"?>
  584. <beans xmlns="http://www.springframework.org/schema/beans"
  585.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  586.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  587.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  588.     <bean id="person" />
  589. </beans><?xml version="1.0" encoding="UTF-8"?>
  590. <beans xmlns="http://www.springframework.org/schema/beans"
  591.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  592.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  593.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  594.     <bean id="person" />
  595. </beans><?xml version="1.0" encoding="UTF-8"?>
  596. <beans xmlns="http://www.springframework.org/schema/beans"
  597.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  598.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  599.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  600.     <bean id="person" />
  601. </beans>contextRefresh.end();<?xml version="1.0" encoding="UTF-8"?>
  602. <beans xmlns="http://www.springframework.org/schema/beans"
  603.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  604.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  605.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  606.     <bean id="person" />
  607. </beans><?xml version="1.0" encoding="UTF-8"?>
  608. <beans xmlns="http://www.springframework.org/schema/beans"
  609.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  610.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  611.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  612.     <bean id="person" />
  613. </beans><?xml version="1.0" encoding="UTF-8"?>
  614. <beans xmlns="http://www.springframework.org/schema/beans"
  615.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  616.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  617.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  618.     <bean id="person" />
  619. </beans>}<?xml version="1.0" encoding="UTF-8"?>
  620. <beans xmlns="http://www.springframework.org/schema/beans"
  621.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  622.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  623.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  624.     <bean id="person" />
  625. </beans><?xml version="1.0" encoding="UTF-8"?>
  626. <beans xmlns="http://www.springframework.org/schema/beans"
  627.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  628.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  629.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  630.     <bean id="person" />
  631. </beans>}<?xml version="1.0" encoding="UTF-8"?>
  632. <beans xmlns="http://www.springframework.org/schema/beans"
  633.        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  634.        xsi:schemaLocation="http://www.springframework.org/schema/beans
  635.         https://www.springframework.org/schema/beans/spring-beans.xsd">
  636.     <bean id="person" />
  637. </beans>}
复制代码
之后会慢慢开始学习这里!,新建公众号:随风的java开发人生,欢迎互关互助。

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

怀念夏天

论坛元老
这个人很懒什么都没写!
快速回复 返回顶部 返回列表