lookingatstarts / easyIdGenerator

生成全局唯一ID
62 stars 10 forks source link

启动项目都是会报无法创建数据源的连接池对象错误异常,是有数据库版本限制吗?我的是Mariadb10.3.7 #5

Open panqide opened 4 years ago

panqide commented 4 years ago
Error creating bean with name 'dynamicDataSource' defined in class path resource [com/easy/id/config/DataSourceConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.easy.id.config.DataSourceConfig$DynamicDataSource]: Factory method 'dynamicDataSource' threw exception; nested exception is com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
panqide commented 4 years ago

找到原因了:需要在d1.properties和d2.properties配置文件的jdbcUrl后面加多个serverTimezone=GMT%2B8时区参数。

lookingatstarts commented 4 years ago

感谢支持和使用

zpk-aaron commented 4 years ago

感谢支持和使用

哥, 我感觉这个项目要火, 加油, 支持你