Error getting a new connection. Error setting driver on UnpooledDataS
报错信息如下:
根据提示可以看出,是找不到数据库的路径,这是为什么呢?
因为数据库驱动com.mysql. jdbc.Driver已经不适用了,要把他改成新的数据库驱动:com.mysql.cj. jdbc.Driver
-
改完之后仍然报错:
Exception in thread “main” org.apache.ibatis.exceptions.PersistenceException:
### Error getting a new connection. Cause: java.sql.SQLException: The server time zone value ‘?й???’ is unrecognized or represents more than one time zone.
这是时间区间的报错
处理:把url路径改成
最后,就这样成功啦~