在Azure App Service上部署Spring Boot jar [英] Deploy Spring Boot jar on Azure App Service

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

问题描述

我无法使用Spring Boot API处理Azure应用服务。我在 https://docs.microsoft.com/en-us/java/azure/spring-framework/deploy-spring-boot-java-web-app-on-azure 但是到目前为止没有运气。

I'm having trouble getting a Spring Boot API to work on an Azure app service. I've followed the Microsoft guide on https://docs.microsoft.com/en-us/java/azure/spring-framework/deploy-spring-boot-java-web-app-on-azure but having no luck so far.

应用程序确实启动(我可以看到应用程序在日志文件中启动)但是对应用程序服务URL的http请求总是以超时。

The application does start (I can see the app boot up in the log file) but http requests to the app service url always end in a timeout.

我读过Azure应用服务只能选择在端口80或8080上运行的嵌入式tomcat服务器,但也没有运气。

I've read that Azure app services only pick up embedded tomcat servers that run on port 80 or 8080, but had no luck with that as well.

该应用程序部署在www根目录中,并且还部署了适当的web.config。

The app is deployed in the www root and an appropriate web.config is deployed as well.

我是尝试使用和不使用应用程序服务器运行App Service(Tomcat和Jetty,因为服务器嵌入在应用程序中,因此不需要),但两种方法都失败了。

I've tried running the App Service with and without an application server (Tomcat and Jetty, that is not needed because the server is embedded in the application), but both approaches failed.

我错过了其他一些配置部分吗?或者这可能与我在天蓝色上使用的计划类型有关?也许资源存在一些问题?

Am I missing some other configuration part? Or could this be related to the type of plan I'm using on azure? Maybe some issue with the resource?

任何指针?

Thx,

Bert

推荐答案

事实证明,我对这是一个天蓝色资源问题的预感是正确的。升级资源内存和CPU解决了这个问题。

It turns out that my hunch about it being an issue with the azure resource was correct. Upscaling resource memory and CPU resolved the issue.

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

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