配置数据源和配置jpa的yml文件

spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: root
url: jdbc:mysql://localhost:3306/order_system?characterEncoding=utf-8&amp&serverTimezone=UTC&amp&useSSL=false
jpa:
hibernate:
ddl-auto: update
database-platform: org.hibernate.dialect.MySQLDialect
show-sql: true


 

posted @ 2019-10-02 13:51  King-DA  阅读(2898)  评论(0编辑  收藏  举报