一、新建 Maven 项⽬
1.创建 Maven 的普通 Java 项⽬

- 设置项⽬的坐标

3.设置项⽬的 Maven 环境

4、设置项⽬的名称和存放的⼯作空间

二、调整项⽬环境
- 修改 JDK 版本

2.改单元测试 JUnit 版本

3.build标签中的pluginManagement标签

三、添加 Spring 框架的依赖坐标
Maven仓库:https://mvnrepository.com/

四、编写 Bean 对象

五、添加Spring配置文件
-
在项⽬的 src 下创建⽂件夹 resources
-
将 resources 标记为资源⽬录

3.在 src\main\resources ⽬录下新建 spring.xml ⽂件,并拷⻉官⽹⽂档提供的模板内容到 xml 中。 配置 bean 到 xml 中,把对应 bean 纳⼊到 Spring 容器来管理 spring.xml

- 在 spring.xml 中配置 Bean 对象

六、加载配置⽂件,获取实例化对象
