In eclipse, how do I run the Java Web?

Source: Internet
Author: User
Tags tomcat server

Right-click the project and select Run as " ," Run on Server ", select a" server "to run,


Without a ready-made server, you can create a new one:


Optimize the configuration of the above "Tomcat server":

In the Servers panel, double-click Server "Tomcat v6.0 server at localhost":

1, the "timeouts--Start (in seconds)" 45 "to" 2000 ";

2. Change "15" from "Timeouts" to "1000" in "seconds";

3. Change the "8080" of "Ports--andhttp/1.1" to "80"

Thus, the above access path is:http://localhost/MyJ2EE/index.jsp

We want to get rid of the "myj2ee" in the path, implement the website root directory access, how to set it?

——— > switch the Settings panel above to the "Modules" state, and then press the settings as shown:


In eclipse, how do I run the Java Web?

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.