在Azure上部署Spring Boot应用程序时(使用本地MySQL)502服务器错误

我正在尝试使用本地MySQL将简单的Spring应用程序部署到Auzre。

这是我的application.properties:

getViewers

这是我的pom.xml

server.servlet.context-path=/api
logging.level.org.hibernate.SQL=DEBUG
logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE
logging.level.org.hibernate.type=TRACE
spring.datasource.url=jdbc:mysql://127.0.0.1:PORT/somedb
spring.datasource.username=azure
spring.datasource.password=password
#spring.datasource.url=jdbc:mysql://localhost:3306/somedb
#spring.datasource.password=root
#spring.datasource.username=root
spring.datasource.driverClassname=com.mysql.jdbc.Driver
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.jpa.show-sql=true
spring.jpa.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
spring.jpa.hibernate.ddl-auto = update
spring.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyJpaImpl
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl

在Azure上部署Spring Boot应用程序时(使用本地MySQL)502服务器错误

我遵循了本教程中的其他说明:https://spring.io/guides/gs/spring-boot-for-azure/

zy870226 回答:在Azure上部署Spring Boot应用程序时(使用本地MySQL)502服务器错误

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3137207.html

大家都在问