我正在尝试使用本地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
我遵循了本教程中的其他说明:https://spring.io/guides/gs/spring-boot-for-azure/