SpringBoot MySql 连接语句
MySql 的连接语句,基于JDBC8以上版本使用。
spring:
datasource:
url: jdbc:mysql://localhost:3333/test?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
username: root
password: 123456
driver-class-name: com.mysql.cj.jdbc.Driver
jpa:
show-sql: true
properties:
hibernate:
format_sql: true
server:
port: 8181