1
0
mirror of https://gitee.com/mirrors/Spring-Cloud-Alibaba.git synced 2021-06-26 13:25:11 +08:00
Spring-Cloud-Alibaba/spring-cloud-alibaba-examples
codewaltz1994 ba1e4ac895 Bug: Fix a bug. issue#471 fescar-example Demo DatabaseConfiguration.java file need to be impoved, or the error will occur .
(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
2019-03-25 12:32:11 +08:00
..
2019-03-19 20:21:49 -05:00
2019-03-19 20:21:49 -05:00
2019-03-19 20:21:49 -05:00
2019-03-19 20:21:49 -05:00
2019-03-19 20:21:49 -05:00
2019-03-19 20:21:49 -05:00
2019-03-19 20:21:49 -05:00
2019-03-19 20:21:49 -05:00
2019-03-19 20:21:49 -05:00