Просмотр исходного кода

auth-service 在连接 mysql8 时需要在 jdbcUrl 中添加 allowPublicKeyRetrieval=true 参数

reghao 1 месяц назад
Родитель
Сommit
203be9f697
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      auth/auth-service/src/main/resources/application-dev.yml

+ 1 - 1
auth/auth-service/src/main/resources/application-dev.yml

@@ -24,6 +24,6 @@ spring:
     username: test
     password: Test_123456
   datasource:
-    url: jdbc:mysql://127.0.0.1/tnb_account_rdb?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8
+    url: jdbc:mysql://127.0.0.1/tnb_account_rdb?allowPublicKeyRetrieval=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8
     username: test
     password: Test_123456