From 4e9f960d4c00f64f21719c16d8cfdd63c7ba8d1f Mon Sep 17 00:00:00 2001 From: Alex HE <3479785008@qq.com> Date: Fri, 26 Jun 2020 09:13:28 +0800 Subject: [PATCH] Repair when docker compose up, docker_litemall service occurre log error, like this "The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server" (#407) Co-authored-by: hedc <3479785008h@gmail.com> --- docker/litemall/application.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/litemall/application.yml b/docker/litemall/application.yml index a28dd8b5..f5f797ae 100644 --- a/docker/litemall/application.yml +++ b/docker/litemall/application.yml @@ -5,7 +5,7 @@ spring: encoding: UTF-8 datasource: druid: - url: jdbc:mysql://mysql:3306/litemall?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&allowPublicKeyRetrieval=true&verifyServerCertificate=false&useSSL=false + url: jdbc:mysql://mysql:3306/litemall?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&allowPublicKeyRetrieval=true&verifyServerCertificate=false&useSSL=true driver-class-name: com.mysql.jdbc.Driver username: litemall password: litemall123456