具体报错信息:
java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.
具体翻译:
服务器时区值“йú±ê׼ʱ¼ä”无法识别或表示多个时区。如果要利用时区支持,必须配置服务器或JDBC驱动程序(通过serverTimezone配置属性)以使用更具体的时区值
通过csdn的搜索,发现两个解决方案:
方法1.在语句"jdbc:mysql://localhost:3366/stujdbc “后添加”?serverTimezone=GMT%2B8"