ch01-hello-spring:使用的ioc,由spring创建对象
实现步骤:
1.创建maven项目
2.加入maven依赖
spring的依赖,版本5.1.9
junit依赖
3.创建类(接口和他的实现)
和没有使用框架一样,就是普通的类
4.创建spring需要使用的配置文件
声明类的信息,这些类由spring创建和管理
5.测试spring创建的类
<!--spring依赖-->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>5.1.9.RELEASE</version>
</dependency>