Openshift Spring App - 如何让它在ROOT上运行?
问题描述:
我目前在openshift中有一个spring应用程序。 应用程序的名称是“应用程序”,它运行在Openshift Spring App - 如何让它在ROOT上运行?
http://apps-fxperiments.rhcloud.com/apps
,但我想让它在根目录下运行
http://apps-fxperiments.rhcloud.com
任何人谁拥有这个经验?
答
在你的web.xml中,寻找webAppRootKey
并将其设置为/:
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>/</param-value>
</context-param>
好,我会稍后再试!我会保持更新 –
试图寻找webAppRootKey但没有找到,我会尝试添加它! –
它没有工作:( –