解决java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed
在连接数据库的url中,加上allowPublicKeyRetrieval=true
mysql8.0后url变为了
jdbc:mysql://localhost:3306/user?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
版权声明:本文为qq_33240556原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。