#DB Configuration
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/user?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone = GMT
spring.datasource.username=root
spring.datasource.password=root
# JPAConfiguration
spring.jpa.database=MySQL
#将show-sql改成true,log才会输出sql语句,便于调试。
#generate-ddl: false表示sping启动的时候不自动生成增删改查接口(因为##我们自己会写增删改查接口),
spring.jpa.show-sql=true
spring.jpa.generate-ddl=true

SpringBoot配置文件中的数据库配置