Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经在 Openshift 上部署了 Test.war 文件,并且我的应用程序 test-sliwa.rhcloud.com/Test 运行正常。当我部署 ROOT.file 应用程序 test-sliwa.rhcloud.com 没有以正确的方式运行 - 第一页还可以,但是当我尝试链接到其他页面时出现 404 错误。
问题出在声明的链接中的源代码中。最好声明与域相关的 URL,例如:
<a href="<%= response.encodeUrl(request.getContextPath() + "/Controller?action=login") %>">
代替:
<a href="Test/Controller?action=login")">}
在 index.jsp 文件中。