idea数据库连接字符串需要添加一些参数;
?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
【完整的连接】
spring.datasource.url=jdbc:mysql://localhost:3306/mydb?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
【参考】
https://blog.csdn.net/qq_43371004/article/details/98385445?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase