在Beanstalk中使用上下文路径部署战争的可接受方式 [英] Accepted way for deploying war with context path in Beanstalk

查看:69
本文介绍了在Beanstalk中使用上下文路径部署战争的可接受方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将Elastic Beanstalk与Tomcat7结合使用来托管Spring MVC应用程序,并且需要使容器尊重上下文路径,而不是将其部署为ROOT项目.

I'm using Elastic Beanstalk with Tomcat7 to host a Spring MVC application and need to have the container respect a context path rather than deploying as the ROOT project.

使用Beanstalk可以实现此目的的公认方法是什么?我们使用下面的maven插件来自动化部署过程:

What is the accepted way to accomplish this using Beanstalk? We use the maven plugin below to automate the deploy process:

http://beanstalker.ingenieux.com.br/

推荐答案

您可以在context.xml中的Context元素的path属性中进行设置.

You can set it in the path attribute of the Context element in your context.xml.

请参阅: http://tomcat.apache.org/tomcat- 7.0-doc/config/context.html

这篇关于在Beanstalk中使用上下文路径部署战争的可接受方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆