Tomcat access path removes the project name

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

write picture description here

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/

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324705250&siteId=291194637