简体   繁体   English

Azure webapp HTTP状态404 - 未找到

[英]Azure webapp HTTP Status 404 – Not Found

I have deployed my simple webapp on Springboot Rest and deployed it on azure cloud successfully just like my other webapps. 我已经在Springboot Rest上部署了我的简单webapp,并成功地将其部署在azure云上,就像我的其他webapps一样。

But I am getting HTTP Status 404 – Not Found when I hit the azure URL of my webapp. 但是当我点击我的webapp的azure URL时,我收到HTTP状态404 - 找不到。

The status of webapp on azure is showing as "Running" but still I am getting 404. azure上webapp的状态显示为“正在运行”但仍然是404。

Please note that, the application running perfectly on my local machine but not on azure. 请注意,应用程序在我的本地计算机上运行完美,但在azure上运行。

Below are the error message details, 以下是错误消息详细信息,

"HTTP Status 404 – Not Found Type Status Report Message / Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. Apache Tomcat/8.5.41" “HTTP状态404 - 未找到类型状态报告消息/描述源服务器未找到目标资源的当前表示,或者不愿意透露该资源是否存在.Apache Tomcat / 8.5.41”

And below is my azure maven plugin configuration I used in my application, 以下是我在我的应用程序中使用的azure maven插件配置,

<groupId>com.microsoft.azure</groupId>

If someone check and assist me on this would be so helpful. 如果有人检查并协助我这将是非常有帮助的。

Thanks in advance. 提前致谢。

Without knowing how you performed your deployment. 不知道您是如何执行部署的。 I am going to assume that you didn't deploy a WAR file to the webapps folder. 我将假设您没有将WAR文件部署到webapps文件夹。 If you just copied the files over Tomcat will not automatically load those like it will for a WAR file. 如果您刚刚复制了Tomcat上的文件,则不会自动加载类似于WAR文件的文件。 Restart the Tomcat server and see if your app gets loaded and starts working. 重新启动Tomcat服务器,查看您的应用程序是否已加载并开始工作。

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

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