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>
This commit is contained in:
Alex HE
2020-06-26 09:13:28 +08:00
committed by GitHub
parent 92cfea639d
commit 4e9f960d4c

View File

@@ -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