dbcp连接池出现org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory

在完成B/S实验报告时候eclipse中出现org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (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=UTC才能解决问题
如下图:
dbcp连接池出现org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory

加入之后问题成功解决!
附上一张成功运行图
dbcp连接池出现org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory