在Microsoft Azure Web App中部署WAR FILE [英] Deploying WAR FILE in Microsoft Azure Web App

查看:108
本文介绍了在Microsoft Azure Web App中部署WAR FILE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个Microsoft azure Web应用程序,并配置了Java版本8和最新可用的tomcat.根据他们的文档,我已将我的WAR文件上传到d:\ home \ site \ wwwroot \ webapps \ ROOT.

I have created a Microsoft azure web app and configured java version 8 and tomcat latest available. As per their documentation , I have uploaded my WAR file to d:\home\site\wwwroot\webapps\ROOT .

我的目录"屏幕截图

wen iam尝试访问,出现404错误.请帮助我解决此问题

wen iam trying to access, giving me a 404 error.Please help me to fix this

推荐答案

如文档所述:

您可以通过将WAR放置在webapps文件夹中来上传应用程序.

you can upload your application by placing your WAR in the webapps folder.

在tomcat的webapp文件夹中复制war文件,tomcat检测到其中一个文件,并将其解压缩到与您为文件选择的名称相对应的文件夹,因此,如果将toto.war复制到

in tomcat's webapp folder you copy war files, tomcat detects the presence of one of those files and unzip it to a folder corresponding to the name you chose for your file, so if you copy toto.war to

$ TOMCAT_HOME/webapps/

$TOMCAT_HOME/webapps/

tomcat部署您的war文件后,该文件夹将如下所示

after tomcat deployed your war file the folder will look like

$TOMCAT_HOME/webapps/toto.war
$TOMCAT_HOME/webapps/toto  (folder being the unzipped version of your file)

ROOT文件夹只是不使用上下文即可提供服务的Web应用程序的特殊情况.

ROOT folder is just a special case of that for the webapplication that is served without using a context.

这篇关于在Microsoft Azure Web App中部署WAR FILE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆