与mysql连接时候出现的问题

1.在XML文件中不能出现& 要用;来代替



2.在XML中配置数据库连接的时候 会出现

要在数据库后面放上?serverTimezone=UTC (时区!)

否则会出错:

Cause: 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.

posted @ 2020-06-01 23:35  麦克郭  阅读(213)  评论(0编辑  收藏  举报