SkySun90 edited a comment on issue #10633: URL: https://github.com/apache/shardingsphere/issues/10633#issuecomment-872802929
mark. 遇到同样问题。配置如下 #shardingsphere配置 spring.shardingsphere.datasource.names=db0 spring.shardingsphere.datasource.common.type=com.alibaba.druid.pool.DruidDataSource spring.shardingsphere.datasource.common.driver-class-name=com.mysql.jdbc.Driver spring.shardingsphere.datasource.db0.url=jdbc:mysql://XX:XX/XXX?useSSL=false&characterEncoding=UTF-8&serverTimezone=GMT%2B8 spring.shardingsphere.datasource.db0.username=XXX spring.shardingsphere.datasource.db0.password=XXX #sharding分表配置 spring.shardingsphere.rules.sharding.tables.tb_demo.actual-data-nodes=db0.tb_demo spring.shardingsphere.rules.sharding.tables.tb_demo.database-strategy.standard.sharding-column=push_date spring.shardingsphere.rules.sharding.tables.tb_demo.database-strategy.standard.sharding-algorithm-name=loc-date-sharding #分片算法配置 spring.shardingsphere.rules.sharding.sharding-algorithms.loc-sharding.type=LOC_SHARDING spring.shardingsphere.rules.sharding.sharding-algorithms.loc-sharding.props.day-size=380 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
