2019独角兽企业重金招聘Python工程师标准>>>
- 在eclipse中,新建maven项目
- next第二步,选择webapp
- 输入id及包名,完成新建
- 给项目build path,添加1.8版本jdk和tomcat
- 项目右键属性 project Facets,切换成web项目,配置资源文件路径为src/main/webapp
- 修改eclipse的maven配置文件,properties-maven-user settings
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"><localRepository>C:\Users\Ocean\.m2\repository</localRepository><mirrors><mirror><id>nexus-aliyun</id><mirrorOf>*</mirrorOf><name>Nexus aliyun</name><url>http://maven.aliyun.com/nexus/content/groups/public</url></mirror></mirrors>
</settings>
下面的是配置阿里巴巴的maven仓库,享受快速加载,感谢阿里!
<mirror><id>nexus-aliyun</id><mirrorOf>*</mirrorOf><name>Nexus aliyun</name><url>http://maven.aliyun.com/nexus/content/groups/public</url></mirror>