-
数据库连接配置:
Loading class
com.mysql.jdbc.Driver'. This is deprecated. The new driver class is
com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.解决办法:
将driverClass配置为:com.mysql.cj.jdbc.Driver。Class.forName("com.mysql.cj.jdbc.Driver");
-
时区问题
Exception in thread "main" 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.
解决办法:
需要在Url后面添加一个参数:?serverTimezone=UTC
暂无评论