配置数据源和配置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&&serverTimezone=UTC&&useSSL=false
jpa:
hibernate:
ddl-auto: update
database-platform: org.hibernate.dialect.MySQLDialect
show-sql: true
本文来自博客园,作者:King-DA,转载请注明原文链接:https://www.cnblogs.com/qingmuchuanqi48/p/11617315.html

浙公网安备 33010602011771号