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