In the Javaweb project, you see a servers project, and find that each new project will generate some of the corresponding project files in the servers project.
:
Each project has a corresponding file. The structure of the file is shown below:
EXPLANATION One: Servers is a plug-in for you to add to the project, the purpose is to configure the server, and does not conflict with your real server configuration, where you can freely configure Tomcat.
The default is not to deploy the WebApps to your real tomcat, but rather to the corresponding project's configuration file here. You can see the servers inside the Server.xml will know.
EXPLANATION two: 1. When you build a B/S architecture system, you need to add the server to your project,
The 2.server is the Tomcat middleware that publishes the Web project you wrote to Tomcat, and just started creating a text project with a select server that fills in the project name, you'll see Tomcat and version number tick.
3. When you run the Web program, server publishes your Web project to Tomcat, and you have access to the program.
There are many configuration files in the 4.server file, such as multi-port configuration, virtual path, etc.
Explain three: You can better manage your project, you can not take care of this, but as long as you run this project, you must open this.
In summary, the servers project, when you run a project with Tomcat, interacts with the local Tomcat service through the Tomcat configuration here, which is just a middleware. The purpose is to separate
The project has its own tomcat, which runs independently without association.
Javaweb Project run-time generated servers project role