码迷,mamicode.com
首页 > Web开发 > 详细

tomcat web的URL解析(web.xml)

时间:2019-12-23 18:30:59      阅读:116      评论:0      收藏:0      [点我收藏+]

标签:bin   which   ref   png   tail   host   java   size   pat   

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)

标签:bin   which   ref   png   tail   host   java   size   pat   

原文地址:https://www.cnblogs.com/feng9exe/p/12085015.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!