Tomcat sets the context of server.xml || Tomcat starts web app in eclipse

 <Context path="/platform" docBase="D:\eclipse-workspace\platform\src\main\webapp" debug="0" reloaable="true"></Context>
 <Context path="/phis" docBase="D:\eclipse-workspace\phis\src\main\webapp" debug="0" reloaable="true"></Context>

Insert picture description here
path: the path displayed on localhost, such as: http://localhost:8080/phis/ (you can write the project name)
docBase: the absolute path of the webapp on the computer (must be the local absolute path)
reloaable="true" : It is possible to program and refresh the project without restarting the service. Tomcat can automatically reload the
debug : it is to set the debug level, 0 means to provide the least information, 9 means to provide the most information, this is the tomcat log debugging information, the number The higher, the more detailed

Guess you like

Origin blog.csdn.net/weixin_44182157/article/details/114434594