因为有时候要写demo需要连接数据库,但是连接的url好长,所以这里就直接记录一下,方便下次粘贴。
spring:
datasource:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql:///shop?serverTimezone=UTC&useUnicode=true&characterEncoding=utf-8&useSSL=true
username: root
password: lj123456