Deploy war on Tomcat without the war name in the URL

后端 未结 4 594
终归单人心
终归单人心 2020-12-03 21:50

I built a war file called myapp.war and deployed it on Tomcat. I\'ve changed the port from 8080 to 80 so I c

4条回答
  •  臣服心动
    2020-12-03 22:47

    Here are two possible method:

    1. Rename your war to ROOT.war
    2. No need to rename. Go to CATALINA_BASE/conf/server.xml Find Host element and set autoDeploy="false" deployOnStartup="false" then add in the end like:

    expamle#2:

       
    
        
        
      
    

提交回复
热议问题