Three ways to deploy a Tomcat project

Source: Internet
Author: User

The first method is as follows:
Just put our project folder into Tomcat, and here I'm doing a test project OA,


Start Tomcat, open the browser, enter Localhost/oa to open your file, note: When the visit, if we do not locate the specific page, will automatically find a page called index.html, here I changed the 80 default port. So the browser directly does not enter


The second method is as follows:
Configure in Server.xml
First move the previous project file OA to the random disk, I moved it to the E disk,




Path is the name of the path you want to enter in Liu's browser (not strictly defined), and match the above


The third method is as follows:
Find the directory below
Apache-tomcat-7.0.57\conf\catalina\localhost

[b] In the browser I entered localhost/aaa and path is empty



(2) Deploy the project in eclipse
I'll take a picture below to illustrate ()



Start creating files and packages for Web projects


Modifying the path of a classpath







Run Tomcat after installing the plugin.


Note: You need to configure Server.xml

Three ways to deploy a Tomcat project

Related Article

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.