1、Tomcat下载及配置测试
1)下载http://tomcat.apache.org/
2)设置环境变量:
CATALINA=C:\JAVA\apache-tomcat-8.5.14
CLASSPATH=%CATALINA%\lib\servlet-api.jar;%CATALINA%\lib;
3)配置server.xml 配置路径
<Host name="localhost">
4)测试 启动Tomcat,输入HTTP://127.0.0.1:8080/
1)下载http://tomcat.apache.org/
2)设置环境变量:
CATALINA=C:\JAVA\apache-tomcat-8.5.14
CLASSPATH=%CATALINA%\lib\servlet-api.jar;%CATALINA%\lib;
3)配置server.xml 配置路径
<Host name="localhost">
<Context path="" docBase="D:\WORKDIR\ServletDemo\webapp" reloadable="true"/>
<Context path="" docBase="E:\JAVA\Workspace\ServletDemo\Webapp" reloadable="true" crossContext="true" caseSensitive="false"/>
4)测试 启动Tomcat,输入HTTP://127.0.0.1:8080/