zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    CentOS7.4部署Python3+Django+uWSGI+Nginx
    测试:ATM
    JDBC_增删改
    HTTP请求状态码
    Servlet2
    Java日期时间3
    Servlet1
    安装Tomcat
    Java日期时间2
    广度优先遍历
  • 原文地址:https://www.cnblogs.com/feng9exe/p/12085015.html
Copyright © 2011-2022 走看看