From 6aa09ccc115a6c7b282551d689fa28b47020c1fd Mon Sep 17 00:00:00 2001 From: Xiong Neng Date: Sat, 15 Sep 2018 14:34:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90springboot-mybatis=E5=8D=87?= =?UTF-8?q?=E7=BA=A7=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application.yml | 24 ++----------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/springboot-mybatis/src/main/resources/application.yml b/springboot-mybatis/src/main/resources/application.yml index 9fda35d..45de8a2 100644 --- a/springboot-mybatis/src/main/resources/application.yml +++ b/springboot-mybatis/src/main/resources/application.yml @@ -34,7 +34,7 @@ logging: spring: profiles: dev datasource: - url: jdbc:mysql://127.0.0.1:3306/pos?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8 + url: jdbc:mysql://127.0.0.1:3306/pos?serverTimezone=UTC&useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8 username: root password: 123456 @@ -43,24 +43,4 @@ logging: ROOT: INFO com: xncoding: DEBUG - file: E:/logs/app.log - ---- - -##################################################################### -######################## 测试环境profile ########################## -##################################################################### - -spring: - profiles: test - datasource: - url: jdbc:mysql://127.0.0.1:3306/pos?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8 - username: root - password: 123456 - -logging: - level: - ROOT: INFO - com: - xncoding: DEBUG - file: /var/logs/app.log + file: D:/logs/app.log