在eclipse中新建maven项目,然后在pom.xml中添加依赖保存即可。
依赖如下
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>4.0.3.RELEASE</version>
</dependency>
代码来源参考spring官网。链接https://github.com/spring-projects/spring-framework/wiki/Spring-Framework-Artifacts
仅当记录