Spring IOC快速入门
1.下载Spring开发包
官方下载地址:https://repo.spring.io/release/org/springframework/spring/
压缩包下载完成后解压,目录结构如下:
2.导入Spring核心开发jar包到工程
- commons-logging
- spring-beans
- spring-context
- spring-core
- spring-expression
- log4j
pom.xml:
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring