原文链接:https://www.jianshu.com/p/7e9247c0b81a
运行jsp文件时报错Caused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value ',网上找了好些资料都未解决,无意中看到https://www.jianshu.com/p/7e9247c0b81a,尝试解决,解决了
在数据库连接字符串url中加入?serverTimezone=Asia/Shanghai&characterEncoding=utf8,即可解决。