Spring MVC的项目,我想部署一个简单的Spring MVC应用程序打开移我用Google搜索,发现这个spring-mvc-3-on-jboss但项目的结构是不同的我有基本的Spring MVC项目结构
即在this repo,在openshift.com我创建的应用程序并将其配置为:
但我不能看到我的回到Home.jsp文件作为欢迎文件,当我转到我的应用程序的URL我只看到默认/传统欢迎页面。
任何建议如何配置项目正常工作?如何部署上openshift.com
回答
没有与你的pom.xml一个大问题,我认为让没有工作的openshift.com您的应用程序。你应该将下列行添加到您的pom.xml
<profiles>
<profile>
<!-- When built in OpenShift the 'openshift' profile will be used when
invoking mvn. -->
<!-- Use this profile for any OpenShift specific customization your app
will need. -->
<!-- By default that is to put the resulting archive into the 'webapps'
folder. -->
<!-- http://maven.apache.org/guides/mini/guide-building-for-different-environments.html -->
<id>openshift</id>
<build>
<finalName>yourAppName</finalName>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<outputDirectory>webapps</outputDirectory>
<warName>ROOT</warName>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
我没有测试此代码JBoss Application Server
,让您的服务器更改为Apache Tomcat 7
。这对我正确工作。
首先你克隆你的git仓库,然后在文档文件夹中自动创建文件夹。
那么你的WAR文件提取物和你过去的克隆目录到文件夹中的webapps
,并创建测试文件夹粘贴到文件夹中的代码,并根war文件。
然后你的文件夹名称ulr写入并输入。
例如
这样。
git clone ssh://[email protected]
将您的解压缩war文件粘贴到您的克隆目录中。
那么火混帐条命令
$ git add .
$ git commit -m "A checkin to my application"
$ git push
我已经从github推回购回来如何获得这项工作? –
你有推回购,然后部署成功你的应用程序消息在terminal.then在浏览器中打开。 – 2015-06-20 12:59:45
对不起,我没有得到你想说的,但我没有在我的本地机器的任何副本,我已经从github.com推! –
- 1. 如何部署
- 2. 如何部署
- 3. 如何签署VSTO部署?
- 4. 杀上部署
- 5. 如何在IIS 5.1上部署MVC App?
- 6. 如何在Tomcat上部署GWT
- 7. 如何在AWS上部署Kubernetes?
- 8. 如何在Linux上部署数据库
- 9. 如何在dotCloud上部署Riak?
- 10. 在Heroku上如何部署的NodeJS
- 11. 如何在Openstack上部署cloudfoundry
- 12. 我如何无线部署在ios上?
- 13. 如何在IIS7上部署web2py站点?
- 14. 如何在somee.com上部署ASP.net网站?
- 15. 如何在heroku上部署夹层?
- 16. 如何在服务器上部署EJB?
- 17. 如何在Heroku上部署MimosaJS站点
- 18. 如何在GAE上部署vaadin项目?
- 19. opsworks:如何在opsworks上部署solr栈
- 20. 如何在tomcat上部署angular2?
- 21. 如何在slicehost上部署jekyll
- 22. 如何在Heroku上部署微服务
- 23. 如何在多种平台上部署
- 24. 如何在Heroku上部署Selenium-python
- 25. 如何在websphere上部署wso2 esb?
- 26. 如何在heroku上部署JSP项目?
- 27. 如何在Heroku上部署Sinatra +胡子?
- 28. 如何在AWS上部署Django?
- 29. 如何在heroku上部署hubot
- 30. 如何在AWS上部署PCFDev
我已经厌倦了这种方式,但我仍然无法让我的应用程序正常工作。请你为我做这件事我会把你作为__contributor__添加到我的项目中。在[g +]上添加我(https://plus.google.com/+ArshadAliSoomro),我们将在那里完成更多步骤。 –
毕竟它已经解决了。 –