Closed Alice52 closed 3 years ago
jdbc:mysql://dev-mysql:3306/ec_pms?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
dev-mysql
] and ec-product
in same network-Dspring.datasource.druid.url
to specify URI if the mysql container's name is mutable
deploy docker container in local failed
ec-product
in docker, which mysql uri:jdbc:mysql://127.0.0.1:3306/ec_pms?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
root cause
ec-product
cannot find host mysql service, it just find mysql in it's own system, so error occurs.