Javaweb Project run-time generated servers project role

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.