1-3 maven的使用
maven java项目构建工具
1、打开官方网站 http://maven.apache.org 下载 apache-maven-3.6.3-bin.zip
2、解压 apache-maven-3.6.3-bin.zip 到 c:/maven目录下
3、打开c:/maven/conf/settins.xml 文件 配置文件
<!-- 配置maven本地仓库地址 -->
<localRepository>c:/maven/repo</localRepository>
<mirrors>
<!-- 添加国内镜像 -->
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
4、idea使用
5、java web 项目
src/
main
/java
/resources
/webapp
/WEB-INF
/web.xml
text/
java
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
version="4.0">
<display-name>myee</display-name>
<!-- 配置web项目的web.xml文件的首页 -->
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>