配置-------MySQL下的database.properties配置
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/test01?useSSL=true&useUnicode=true&characterEncoding=utf8
jdbc.username=root
jdbc.password=123456
# 如果mysql用的是8.0以上的版本,需要增加一個時區配置。在url最後加 &serverTimezone=Asia/shanghai
# useSSL 使用安全連接
注意mysql8.0+以後需要增加時區配置