这个问题找了一上午
报错提示
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
然后在mysql连接后面加上?后面的就能成功连上了
url: jdbc:mysql://127.0.0.1:3306/Studer?useSSL=false&useUnicode=true&characterEncoding=utf-8&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai