There are four types of elements in the server. xml file.
1. Top-level class Elements
Including <Server> and <service>, which are located at the top layer of the configuration file.
2. connector Elements
It represents a communication interface between the customer and the service. It is responsible for sending the customer's request to the server and sending the server's response result to the customer.
3. Container Elements
A component that processes customer requests and generates response results. There are three container class elements: Engine, host, and context.
4. nested class Elements
It indicates the components that can be added to the container.
Some basic Tomcat elements:
* <Server>: represents the entire Catalina servlet container. The <Server> element can contain one or more <service> elements.
* <Service>: the element contains one <engine> element and one or more <connector> elements, which share the same <engine>.
* <Connector>: Representatives and customersProgramThe actual interaction component, which is responsible for accepting customer requests and returning response results to the customer.
* <Engine>: Each <service> element can contain only one <engine>. <engine> process customer requests received by all <connector> elements in the same <service>.
* <Host>: A <engine> element can contain multiple
* <Context>: Each <context> represents a single application running on a VM. One