@@ -87,8 +87,10 @@
<!-- Mysql驱动包 -->
<dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
+ <groupId>com.mysql</groupId>
+ <artifactId>mysql-connector-j</artifactId>
+ <version>8.0.33</version>
+ <scope>runtime</scope>
</dependency>
<!-- pagehelper 分页插件 -->
@@ -6,9 +6,9 @@ spring:
druid:
# 主库数据源
master:
- url: jdbc:mysql://47.98.241.144:3306/hzy?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8
+ url: jdbc:mysql://47.98.241.144:3306/hzy?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: root
- password: $TyH69i4EEG^om!!
+ password: mS5k2G7zQ9cE4bR6x
# 从库数据源
slave:
# 从数据源开关/默认关闭