The role of the Tomcat Conf directory under Web.xml,tomcat-users.xml,server.xml, and context.xml four files
The Conf directory is a server-related configuration file.
Tomcat configuration is based on two profiles: 1.server.xml-tomcat Global Profile 2.web.xml-Configure a different relational environment in Tomcat
Server.xml
Server.xml is the master configuration file for Tomcat. Complete two goals:
1 provides the initial configuration of the Tomcat component.
2 illustrates the structure of Tomcat, meaning that it enables Tomcat to complete its start-up and build itself by instantiating components, such as the important elements of the Server.xml species specified in server.xml: elements and their descriptions
Web. XML
Tomcat allows users to define the default value of Web. XML for all relational environments by placing the default Web. XML in the Conf directory. When building a new relational environment, Tomcat uses the default Web. xml file as the basic settings and application-specific Web. XML ( Web-inf/web.xml files that are placed in the application project) to override these default values.
Tomcat-users.xml
Configures the user information for Tomcat.
context.xml
Used to configure the environment. When you develop a project, you typically configure the file, or you can configure Jndi.