java - Deploying my application at the root in Tomcat -


I have a war file of my application. I have to apply it at the root level. The current URL is http: // localhost: 8080 / war_name / application_name .

You have a few options:

  1. from Tomcat Remove the out-the-box root / directory and your war file < root.war before deploying it.

  2. Deploy war_name.war as your war (by your example) and configure them to use your battle file < Code> conf / server.xml :

      & lt; Reference path = "docBase =" war_name "debug =" 0 "reloadable =" true ">      

    most The first one is easy, but a bit more cool. Second, it is probably a more attractive way to do this.

Comments