Current location - Quotes Website - Collection of slogans - How to access java web project directly without entering the project name and port number?
How to access java web project directly without entering the project name and port number?
You don't need to enter the project name for setting: in tomcat/conf/server.xml, a Context tag is added to the host tag, and the path attribute is empty, which means that you don't need to enter the project name. docBase is the project path, and the name attribute of the host can be modified, generally IP, so you can access whatever you modify.

You don't need to enter the port number: tomcat/conf/server.xml, and the port is set to 80.