server.XML其中包括
I.顶层类元素[Top Level Elements]: 位于整个配置文件的顶层, 包括和;
II.连接器类元素[Connectors ]: 客户和服务(容器类元素)间的通讯接口.接受客户请求,返回响应结果;
II.容器类元素[Containers]: 处理客户请求并且生成响应结果,包含3个:
IV.嵌套类元素[Nested Components]: 可以加入到容器中的元素,包括: 等
一个包含一个或多个,一个包含唯一一个和一个或多个,多个 共享一个;一个包含多个,每个定义一个虚拟主机,包含一个或多个web应用; 元素是代表一个在虚拟主机上运行的Web应用.标签的描述
Please note that for tomcat 5.x, unlike tomcat 4.x, it is NOT recommended to place elements directly in the server.xml file. Instead, put them in the META-INF/context.xml directory of your WAR file or the conf directory as described above.
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/16175072/viewspace-462984/
,如需转载,请注明出处,否则将追究法律责任。