IntelliJ idea modifying the Web Project Access path

Source: Internet
Author: User
Tags tomcat

today using IntelliJ idea to create a new MAVEN Web project, found some problems, and finally all done, the online articles are a lot of nonsense, no use. It used to be eclipse, perhaps using eclipse for a long time, think Eclipse is more cordial, but now use IntelliJ idea to feel more convenient and high-end than eclipse ...

New Project Discovery Project can only access the home page with access paths such as localhost:8080, which is index.jsp

then I used eclipse to create a new project that was Localhost:8080/xxx (the project name) to access. Of course it is possible to set up Tomcat to get rid of the project name, so IntelliJ idea should be the same, but IntelliJ idea's Tomcat is all independent, that is, each project is a tomcat instance. Then we just need to modify this instance, and the principle knows, so do it.



The point is here, as long as the application context inside the project name can be manually filled, the Tomcat default access path will also automatically add


so direct access to Localhost:8080/business-home

it worked.


IntelliJ idea helped Tomcat set up a set of access mechanisms

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.