SpringBoot-JPA-MySQL 'application.properties' 基本配置:
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/test
spring.datasource.username=xxx
spring.datasource.password=xxx
spring.jpa.database-platform=org.hibernate.dialect.MySQL5Dialect
spring.jpa.hibernate.ddl-auto=update
# 控制台是否显示执行的 SQL 语句
#spring.jpa.show-sql=true
# 控制台显示执行的 SQL 语句是否格式化
#spring.jpa.properties.hibernate.format_sql=true