Commit 8422d3a3439dbabd2b1bdd2589e205624eed1e68
1 parent
6c13317f
添加数据库链接参数
Showing
2 changed files
with
2 additions
and
2 deletions
src/main/resources/all-application.yml
| ... | ... | @@ -36,7 +36,7 @@ spring: |
| 36 | 36 | datasource: |
| 37 | 37 | type: com.zaxxer.hikari.HikariDataSource |
| 38 | 38 | driver-class-name: com.mysql.cj.jdbc.Driver |
| 39 | - url: jdbc:mysql://127.0.0.1:3306/wvp2?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true&serverTimezone=PRC&useSSL=false&allowMultiQueries=true | |
| 39 | + url: jdbc:mysql://127.0.0.1:3306/wvp2?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true&serverTimezone=PRC&useSSL=false&allowMultiQueries=true&allowPublicKeyRetrieval=true | |
| 40 | 40 | username: root |
| 41 | 41 | password: root123 |
| 42 | 42 | hikari: | ... | ... |
src/main/resources/application-dev.yml
| ... | ... | @@ -26,7 +26,7 @@ spring: |
| 26 | 26 | datasource: |
| 27 | 27 | type: com.zaxxer.hikari.HikariDataSource |
| 28 | 28 | driver-class-name: com.mysql.cj.jdbc.Driver |
| 29 | - url: jdbc:mysql://127.0.0.1:3306/wvp?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true&serverTimezone=PRC&useSSL=false&allowMultiQueries=true | |
| 29 | + url: jdbc:mysql://127.0.0.1:3306/wvp?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true&serverTimezone=PRC&useSSL=false&allowMultiQueries=true&allowPublicKeyRetrieval=true | |
| 30 | 30 | username: root |
| 31 | 31 | password: root |
| 32 | 32 | hikari: | ... | ... |