Skip to content

Commit

Permalink
fix: mysql时区
Browse files Browse the repository at this point in the history
  • Loading branch information
lerry903 committed May 18, 2019
1 parent c75a953 commit 73129f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ruoyi-admin/src/main/resources/dev/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ spring:
druid:
# 主库数据源
master:
url: jdbc:mysql://dev:3306/ry?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true
url: jdbc:mysql://dev:3306/ry?useUnicode=true&characterEncoding=utf8&useTimezone=true&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=true
username: root
password: password
# 从库数据源
Expand Down
2 changes: 1 addition & 1 deletion ruoyi-admin/src/main/resources/run/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ spring:
druid:
# 主库数据源
master:
url: jdbc:mysql://localhost:3306/ry?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true
url: jdbc:mysql://localhost:3306/ry?useUnicode=true&characterEncoding=utf8&useTimezone=true&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=true
username: root
password: password
# 从库数据源
Expand Down
2 changes: 1 addition & 1 deletion ruoyi-admin/src/main/resources/uat/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ spring:
druid:
# 主库数据源
master:
url: jdbc:mysql://test:3306/ry?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true
url: jdbc:mysql://test:3306/ry?useUnicode=true&characterEncoding=utf8&useTimezone=true&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=true
username: root
password: password
# 从库数据源
Expand Down

0 comments on commit 73129f7

Please sign in to comment.