开发者

How to set the path of web app in META-INF/context.xml in Jetty?

开发者 https://www.devze.com 2022-12-18 18:33 出处:网络
I know how to do it in Tomcat configuratio开发者_C百科n but how to do the same in Jetty server?Are you using maven to deploy?Set contextPath in your pom (http://docs.codehaus.org/display/JETTY/Maven+J

I know how to do it in Tomcat configuratio开发者_C百科n but how to do the same in Jetty server?


Are you using maven to deploy? Set contextPath in your pom (http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin#MavenJettyPlugin-WebappConfiguration). Similar process for ant.

I'd advise against trying to bake the path into your WAR file. Configure your run time as you deploy it. That way you don't need to recompile a new WAR just to deploy into a different context path (e.g. testing vs staging vs production).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号