application.yml 常用配置
spring:
datasource:
# 数据源基本配置
username: root
password: root
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/ticktock
jpa:
hibernate:
ddl-auto: update #自动更新数据表
show-sql: true
properties:
hibernate:
format_sql: true #格式化sql语句