• tomcat web的URL解析(web.xml)


    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 ArchitectureTomcat 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

    Servlet_HelloServletURL.png

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

  • 相关阅读:
    数据库之小问题
    网络基础
    react-fiber 解析
    【like-react】手写一个类似 react 的框架
    istat menus 序列号
    Git学习
    JavaScript设计模式与开发实践【第一部分】
    javascript 原生bind方法实现
    requirejs 学习
    mac 安装maven+eclipse
  • 原文地址:https://www.cnblogs.com/feng9exe/p/12085015.html
Copyright © 2020-2023  润新知