📜  使用 Spring Boot 属性配置 MySQL - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:06.859000             🧑  作者: Mango

代码示例1
spring.datasource.url=jdbc:mysql://localhost:3306/javadevjournal
spring.datasource.username=javadevjournal
spring.datasource.password=ThePassword
spring.jpa.hibernate.ddl-auto=update

## Hibernate Properties
# The SQL dialect makes Hibernate generate better SQL for the chosen database
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5InnoDBDialect