Myeclipse提前安装好maven,然后新建maven工程项目;
在pom.xml配置文件中,添加Spring框架的maven下坐标信息:
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>3.2.7.RELEASE</version>
</dependency>
</dependencies>
pom.xml文件是什么?pom作为项目对象模型。通过xml表示maven项目,使用pom.xml来实现。主要描述了项目:包括配置文件;开发者需要遵循的规则,缺陷管理系统,组织和licenses,项目的url,项目的依赖性,以及其他所有的项目相关因素
网友评论