一开始以为是jar没导进来  maven clear    install 一下 还是那样  

找了一些解决方案

 

发现是MySQL 8.0 版本 的问题 

需要在后面加  allowPublicKeyRetrieval=true

一开始是  

url: jdbc:mysql://localhost:8858/*****?useUnicode=true&characterEncoding-utr-8&useSSL=false

更正后 后面 加上

&allowPublicKeyRetrieval=true

可执行-->

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-27
  • 2022-12-23
  • 2021-09-14
  • 2021-11-12
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案