Tomcat virtual path configuration method

One way:
  the web project configuration to a directory other than the webapps

  In conf / server.xml configuration, found <host> tags, <Content docBase = "E: \ yqs \ JspProject" path = "/ JspProject" />, docBase is the actual path, path is the virtual path (relative to the webapps) after the configuration that you need to restart TomCat

Second way:

  In D: \ apache-tomcat-9.0.17 \ conf \ Catalina \ localhost in the new "Project name .xml", that is, add a new row <Content docBase = "E: \ yqs \ JspProject" path = "/ JspProject" / >

Guess you like

Origin www.cnblogs.com/yuanqisheng/p/12348156.html