解决方法
连接数据库的url中添加allowPublicKeyRetrieval=true
jdbc.url=jdbc:mysql://localhost:3306/test?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false
时间:2023-02-26 10:30:47
连接数据库的url中添加allowPublicKeyRetrieval=true
jdbc.url=jdbc:mysql://localhost:3306/test?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false