# Spring5.2 **Repository Path**: danglea/Spring5.2 ## Basic Information - **Project Name**: Spring5.2 - **Description**: spring源码 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-06-14 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Spring5.2 #### 介绍 spring5源码 **IOC控制反转**,将类交给spring管理。 通过bean配置类有参构造的三种方式: 1. 通过属性的类型 2. 通过属性名 3. 通过属性在有参构造中的索引 当我们通过xml文件将类交给spring管理时 ``` ApplicationContext ac=new ClassPathXmlApplicationContext("application.xml"); ``` 读取配置时,类已经被初始化了。