maven篇
Posted Sam168666
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了maven篇相关的知识,希望对你有一定的参考价值。
1,新建一个web项目

2,构建基础目录

web.xml
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd" >
<web-app>
<display-name>Archetype Created Web Application</display-name>
</web-app>
index.jsp/html
<html>
<body>
<h2>Hello World!</h2>
</body>
</html>
更改jdk

项目右键properties,project facets 修改Java为你当前项目的JDK

3,运行项目

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
用maven通过pom文件,管理多个项目

1,新建maven工程


2,打开pom文件,在配置界面选择

3,新建子项目


以上是关于maven篇的主要内容,如果未能解决你的问题,请参考以下文章