Commit 6dde9095a43bb22a465c83f12ae4e00e2f01498c
1 parent
ba34e3c9
使得jdbc连接串支持mysql 8
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/resources/application-local.yaml
| ... | ... | @@ -7,7 +7,7 @@ spring: |
| 7 | 7 | # 数据源配置项 TODO 多数据源;TODO 监控配置 |
| 8 | 8 | datasource: |
| 9 | 9 | name: ruoyi-vue-pro |
| 10 | - url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.name}?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT | |
| 10 | + url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.name}?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT&allowPublicKeyRetrieval=true | |
| 11 | 11 | driver-class-name: com.mysql.jdbc.Driver |
| 12 | 12 | username: root |
| 13 | 13 | password: 123456 | ... | ... |