Web架构学习(1)使用eclipse搭建maven项目
首先用eclipse创建工程 new -> project -> maven -> maven project
点击next 进入Select an Archetype 界面,选择maven archetype webapp
点击next进入Specify Archetype parameters界面,给工程指定 groupId和artifactId点击finish完成工程搭建
maven项目将通过pom.xml文件控制,为方便起见会将一个罗列了很多包和插件及服务器地址配置的pom工程作为我们当前pom的父类,是要父类在中央仓中,我们只需在自己工程的pom中对其引用即可
<dependency><groupId>org.springframework</groupId><artifactId>spring-webmvc</artifactId></dependency>