Publish the project under tomcat, or access the domain name to remove the project name when building a website
There are mainly two methods
- One is to put the project in the ROOT directory, but I do not recommend it personally, a single project is ok
- The second is to modify the configuration under conf/server.xml
docBase is the actual path of the project, and path is the access path to be modified. Here I am mapping it to the root directory: such as http://localhost:8080/