URL: http://hostname.com/contextPath/servletPath/pathInfo JettyIf contextPath is not specified, the root context is used by default, and the path of the root context is "/". warName.warWithout XML IoC file:
WEB-INF/jetty-web.xml<Configureclass="org.eclipse.jetty.webapp.WebAppContext"> <Setname="contextPath">/test</Set> ... </Configure> TomcatIndividual <context> elements can be defined in a number of ways:
META-INF/context.xmlThere is a close relationship between context name, context path, context version and base file name:
For example:
Server.xmlIt is not recommended to add the <context> element in the conf/server.xml file, because this file can only be reloaded by restarting Tomcat, which affects the normal use of other WebAPPs. Default context.xmlTomcat has a default context element, which applies to all applications, but its priority is also the lowest, and all configurations can be overwritten by the application. There are two default context.xml files:
This is the end of this article about setting Context Path in Web Applications. For more information about setting Context Path in Web Applications, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Teach you how to build the vue3.0 project architecture step by step
>>: MySQL series 6 users and authorization
Sometimes you may need to modify or add exposed p...
1. MySQL download address; http://ftp.ntu.edu.tw/...
1. Installation Install using yum ##Automatically...
Table of contents 1. Master-slave synchronization...
The MySQL query result row field splicing can be ...
Copy code The code is as follows: <iframe id=&...
1. Time difference functions (TIMESTAMPDIFF, DATE...
There are four types of positioning in CSS, which...
How to install iso files under Linux system? Inst...
All previous projects were deployed in the Window...
HTML Input Attributes The value attribute The val...
Preface When developing a gateway project, the si...
In the development process of Vue project, for th...
Table of contents Preface 1. Configure intranet D...
Suppose a user management system where each perso...