解决java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed
解决方式
只要在数据库url的后面添加allowPublicKeyRetrieval=true即可
jdbc:mysql://localhost:3306/test?serverTimezone=GMT&allowPublicKeyRetrieval=true&useSSL=false&characterEncoding=utf8;