使用ssl但关闭服务器验证(例如在您自己的计算机上处于开发模式时)如何:
jdbc:mysql://localhost:3306/Peoples?verifyServerCertificate=false&useSSL=true