mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
(Address:https://github.com/spring-cloud-incubator/spring-cloud-alibaba/issues/471) Root Cause: When using a newer version of MySQL dataase and jdbc jars , the jdbc url need add serverTimezone parameter to jdbc url. Solution: Under the guidance of the thought, change "druidDataSource.setUrl("jdbc:mysql://" + ip + ":" + port + "/" + dbName);" into "druidDataSource.setUrl("jdbc:mysql://" + ip + ":" + port + "/" + dbName + "?serverTimezone=UTC");” in every databaseConfuguration.java file under this fescar-example directory.then re-run the example, bug is free Project: spring-cloud-alibaba/spring-cloud-alibaba-examples/fescar-example