Tomcat 学习笔记
自己用EDraw画了个Web执行流程
目前做的两个项目都是用Tomcat作为web应用服务器的。
自己的几点笔记:
一 欲装tomcat需要先装JDK
二 bin文件夹下是所有可执行命令,conf是配置文件夹,lib是库文件夹,webapps发布项目的目录
三 server.xml可以:
1修改端口号
<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>
2修改发布的目录
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
3发布的项目
<Context docBase="***" path="/***"/>
四 web.xml可以
1配置默认欢迎页面
<welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> </welcome-file-list>
2 是否显示文件列表
<init-param> <param-name>listings</param-name> <param-value>false</param-value>
</init-param>