Explorar o código

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

reghao hai 1 mes
pai
achega
203be9f697
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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