Accepted way for deploying war with context path i

2019-08-05 01:10发布

问题:

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.

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/

回答1:

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

See: http://tomcat.apache.org/tomcat-7.0-doc/config/context.html