简体   繁体   English

将Spring Java Web App托管到Openshift

[英]Host spring java web app to Openshift

在此处输入图片说明

home.jsp home.jsp

<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

    <h1>This is My HOME.</h1>

</body>
</html>

Actually, It should show like below. 实际上,它应该显示如下。

在此处输入图片说明

How to call my webpage in openshift? 如何在openshift中调用我的网页?

您在哪个服务器上部署了这个tomcat或Jboss?。

What comes to mind first is the difference in URLs, leading to different way of processing JSP file. 首先想到的是URL的差异,导致处理JSP文件的方式不同。 The top one is: 最重要的是:

..../????-1.0.0-BUILD-SNAPSHOT

while the bottom one: 而下一个:

..../aaaa/hello

clearly has different context and endpoint. 显然具有不同的上下文和终点。

There might be differences in configuration of your local server and the remote one, but I'd start from comparing apples to apples first - same JSP, same application, same URL path. 您的本地服务器和远程服务器的配置可能有所不同,但是我将从首先将Apple与Apple进行比较开始-相同的JSP,相同的应用程序,相同的URL路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM