我想知道是否可以将带有MySQL数据库的spring boot应用程序部署到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 "%HOME%\site\wwwroot\test.war"">
</httpPlatform>
</system.webServer>
</configuration>
Run Code Online (Sandbox Code Playgroud)
我正在将 war 文件上传到站点/wwwroot 并将 web.config 文件也放在那里。
我的问题是:如何执行war文件?它应该在我自动完成部署时发生吗?因为现在我得到的只是服务不可用,Http 错误 503。
谢谢