解决java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed
生活随笔
收集整理的這篇文章主要介紹了
解决java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
解決java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed
在連接數(shù)據(jù)庫(kù)的url中,加上allowPublicKeyRetrieval=truemysql8.0后url變?yōu)榱薺dbc:mysql://localhost:3306/user?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
總結(jié)
以上是生活随笔為你收集整理的解决java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Spring+MyBatis 多数据源配
- 下一篇: 使用Docker Compose安装my