开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜