一、异常
com.mysql.cj.exceptions.InvalidConnectionAttributeException: 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.
二、解决
英语不太好,勉强知道这个异常跟时区有关,莫名其妙的,什么鬼~百度之后,在配置文件的url后增加serverTimezone=GMT
<property name="url" value="jdbc:mysql://localhost:3306/yiibaijava?serverTimezone=GMT" />
因为我在学习spring,故实在xml文件中修改,使用其它框架看情况修改就好