create connection SQLException, url: jdbc:mysql://localhost:3306/user_db?
useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC, errorCode 0, state 08001
这个错误是提示我们数据库的驱动,url填写错误,仔细检查url是否正确;
下面是我url:
MySQL 8.0.23
jdbc:mysql://localhost:3306/user_db?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC
xml文件写法
<property name="url" value="jdbc:mysql://localhost:3306/user_db?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC" />