相关疑难解决方法(0)

Microsoft Azure上的Spring Boot应用程序

我想知道是否可以将带有MySQL数据库的spring boot应用程序部署到azure云中.我找不到任何说明或教程.

azure spring-boot

10
推荐指数
1
解决办法
8145
查看次数

将 Springboot 部署到 Azure 应用服务

我正在尝试将我的 springboot 项目部署到 Azure 应用服务中。我创建了一个应用服务并通过 FTP 上传了两个文件:test.war 和 web.config,如他们的教程中所述。

网页配置

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <handlers>
      <add name="httpPlatformHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" />
    </handlers>
    <httpPlatform processPath="%JAVA_HOME%\bin\java.exe"
        arguments="-Djava.net.preferIPv4Stack=true -Dserver.port=%HTTP_PLATFORM_PORT% -jar   &quot;%HOME%\site\wwwroot\test.war&quot;">
    </httpPlatform> 
  </system.webServer>
</configuration>
Run Code Online (Sandbox Code Playgroud)

我正在将 war 文件上传到站点/wwwroot 并将 web.config 文件也放在那里。

我的问题是:如何执行war文件?它应该在我自动完成部署时发生吗?因为现在我得到的只是服务不可用,Http 错误 503。

谢谢

java web-applications azure spring-boot

2
推荐指数
1
解决办法
5887
查看次数

标签 统计

azure ×2

spring-boot ×2

java ×1

web-applications ×1