mysql
MySQL 8.0 Public Key Retrieval is not allowed
url中添加
&allowPublicKeyRetrieval=true
MySQL 8.0 The server time zone value
数据库修改配置
查看:
show VARIABLES like ‘%time_zone%’
修改:
set global time_zone=’+8:00’
立即生效:
flush privileges;
时间格式及东八区配置
Springboot配置中添加
# 时间设置为东八区, 不然和数据库里面的时间差8小时
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
mybatis一级缓存
参考: https://blog.youkuaiyun.com/u010520146/article/details/86647824
二级缓存
参考: https://www.cnblogs.com/liouwei4083/p/6025929.html