浏览代码

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>
Alex HE 5 年之前
父节点
当前提交
4e9f960d4c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docker/litemall/application.yml

+ 1 - 1
docker/litemall/application.yml

@@ -5,7 +5,7 @@ spring:
     encoding: UTF-8
     encoding: UTF-8
   datasource:
   datasource:
     druid:
     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
       driver-class-name:  com.mysql.jdbc.Driver
       username:  litemall
       username:  litemall
       password:  litemall123456
       password:  litemall123456