当前位置:首页 > Web开发 > 正文

which is located in the/confsubdirectory ofTomcats installa

2024-03-31 Web开发

1、一个tomcat可以配置多个host;

2、一个host可以包罗多个应用:context;

3、一个应用可以包罗多个servlet:servlet-path;

4、一个servlet可以包罗多个request:request-path;

Tomcat’s Architecture

Tomcat’s architecture consists of a series of functional components that can be combined according to well-defined rules.

Tomcat Architecture

The structure of each server installation (via these functional components) is defined in the file server.xml, which is located in the /conf subdirectory of Tomcat’s installation folder. Let’s discuss these components in detail.

https://howtodoinjava.com/tomcat/tomcats-architecture-and-server-xml-configuration-tutorial/

web.xmlの定義

URLパスよって呼び出されるサーブレットクラスの場所は次の図の通りである。また、URLパスとサーブレットのマッピングはweb.xmlに定義されている。

https://eng-entrance.com/servlet-web-xml

https://www.ntu.edu.sg/home/ehchua/programming/java/JavaServlets.html

tomcat web的URL解析(web.xml)

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/web/33238.html