war部署到tomcat
生活随笔
收集整理的這篇文章主要介紹了
war部署到tomcat
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
gs-rest-service-0.1.0.war復制到tomcat-9.0.0.M17\webapps\ 打開server.xml,這Host節點,加入<Context?path="/gs"?docBase="gs-rest-service-0.1.0.war"?debug="0"?privileged="true"/>? gs相當于虛擬目錄,docBaset填寫相對應Host 的 appBase的地址,加后綴war <Host?name="localhost"??appBase="webapps" unpackWARs="true"?autoDeploy="true">
<!--?SingleSignOn?valve,?share?authentication?between?web?applications Documentation?at:?/docs/config/valve.html?--> <!-- <Valve?className="org.apache.catalina.authenticator.SingleSignOn"?/> -->
<!--?Access?log?processes?all?example. Documentation?at:?/docs/config/valve.html Note:?The?pattern?used?is?equivalent?to?using?pattern="common"?--> <Valve?className="org.apache.catalina.valves.AccessLogValve"?directory="logs" prefix="localhost_access_log"?suffix=".txt" pattern="%h?%l?%u?%t?"%r"?%s?%b"?/> <!--?Tomcat?Manager?Context?-->? <Context?path="/gs"?docBase="gs-rest-service-0.1.0.war"?debug="0"?privileged="true"/>? </Host> 可以用地址訪問: http://localhost:8080/gs/greeting/
<!--?SingleSignOn?valve,?share?authentication?between?web?applications Documentation?at:?/docs/config/valve.html?--> <!-- <Valve?className="org.apache.catalina.authenticator.SingleSignOn"?/> -->
<!--?Access?log?processes?all?example. Documentation?at:?/docs/config/valve.html Note:?The?pattern?used?is?equivalent?to?using?pattern="common"?--> <Valve?className="org.apache.catalina.valves.AccessLogValve"?directory="logs" prefix="localhost_access_log"?suffix=".txt" pattern="%h?%l?%u?%t?"%r"?%s?%b"?/> <!--?Tomcat?Manager?Context?-->? <Context?path="/gs"?docBase="gs-rest-service-0.1.0.war"?debug="0"?privileged="true"/>? </Host> 可以用地址訪問: http://localhost:8080/gs/greeting/
轉載于:https://www.cnblogs.com/yuanxiaoping_21cn_com/p/6606323.html
總結
以上是生活随笔為你收集整理的war部署到tomcat的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: CorelDRAWX4的VBA插件开发(
- 下一篇: Docfetcher