Spring Boot 如何避免在Azure上部署Sping Boot 应用程序后陷入“嘿,Java开发人员”的困境

bwntbbo3  于 5个月前  发布在  Spring
关注(0)|答案(1)|浏览(75)

我是一个Azure初学者,有一段时间我一直有一个问题,当我尝试将我的Sping Boot 应用程序部署到Azure时,它似乎没有做任何事情?它被配置为与GitHub操作一起工作,并且在提交新内容时显示活动,但似乎什么都没有显示。
系统使用Java Sping Boot 后端和ReactJS作为前端。
我使用的是常规的Azure Web应用程序,而不是Spring特定的应用程序,因为它一旦启动就需要花费太多的钱。
任何帮助将真的很感激,因为我不知道该怎么做This displays no matter what I seem to do
It should be displaying the web app as instructed by index.js, which is the default document that we have entered.
很高兴回答任何问题,因为我不知道什么信息适用于这个案件。
谢谢
我已经尝试将显示的Tomcat版本更改为3.4.10,如https://github.com/spring-projects/spring-boot/issues/33974中所述
并更改默认文档,如https://learn.microsoft.com/en-us/answers/questions/1295335/how-to-successfully-deploy-source-code-from-azure中所述
重新连接,如Azure, default "Hey, Java developers!" welcome page after successfully deployment中所述

a6b3iqyw

a6b3iqyw1#

转到Azure App Service=>Advanced Tools=>go=> redirects to KUDU site

  • 如果应用程序是windows,导航到Debug Console=>CMD=>Site/wwwroot,检查项目的所有必需文件是否已部署且可用。
  • 如果应用程序是Linux,将newui添加到KUDU站点URL(https://kpspringreactapp.scm.azurewebsites.net/newui),打开site/wwwroot并检查部署的项目文件是否可用。
  • 转到您的Web App=> App Service =>Enable Application Logging。

x1c 0d1x的数据

  • 运行应用程序并检查Azure应用服务的Log Stream中的日志,以确定是否存在可能导致应用程序停止运行的任何错误。


*如果仍然不起作用,请使用File Zilla将应用程序部署到Azure App Service。请参阅 Shashank Trivedi 解释的文档。

使用SpringBoot后端和ReactJs前端将应用程序部署到Azure的步骤:

  • 安装FireZilla
  • 创建并打开Azure应用服务,然后单击停止
  • 导航到部署中心=>FTPS凭据,复制FTPS endpoint, Username, Password
  • 打开Firezilla,粘贴值并建立连接,然后上传应用程序的WAR/WAR文件。


  • 上传文件后,启动Azure应用服务并运行应用程序。

相关问题