nested exception is 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.] with root cause
根据报错信息可以知道,我们需要指定一个特定的时区
所以只需要在配置文件。yml或者propertis中的url加上serverTimezone=Asia/Shanghai即可
例如我的配置
搞定!
05-01
951
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-06
1433
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-27
311
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)