分布式部署项目-一键生成代码出错
2022-08-31 22:08 ly772186472 阅读(48) 评论(0) 收藏 举报
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.
因为 连接数据库 模式出错:
dsc.setDriverName("com.mysql.jdbc.Driver"); 改为
dsc.setDriverName("com.mysql.cj.jdbc.Driver");
再次出错:
Exception in thread "main" java.lang.RuntimeException: 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 specific time zone value if you want to utilize time zone support.
&serverTimezone=UTC
jdbc:mysql://localhost:3306/db2009_mybaitis_plus?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=UTC
浙公网安备 33010602011771号