How to set the context path of a web application in Tomcat 7.0

后端 未结 13 1330
傲寒
傲寒 2020-11-21 23:34

I know that I can rename my webapp (or it\'s WAR file) to ROOT but this is a terrible way to do it, IMHO. Now I checked out the tomcat doc & it says

13条回答
  •  既然无缘
    2020-11-21 23:57

    It's not recommended to update the server configuration like server.xml or ROOT.xml.

    You can put a context.xml configuration file under your web-application META-INF directory, with the context path setting included. This will override the default server setting?

    i.e.:

    
    

提交回复
热议问题