tomcat:web服务器
部署方式:
- 直接放在webapps目录下
- 配置conf目录下server.xml文件中host标签
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
<Context docBase="项目存放路径" path="虚拟目录" />
</Host>
- 配置conf\Catalina\localhost目录下,创建任意xml文件,文件名就是虚拟路径,在文件中添加:
<Context docBase="项目存放路径" />