利用shardingjdbc(5.0.0-beta)分库,自定义了分库策略,项目启动报错:The props`strategy` cannot be null when uses class based sharding strategy
发现sharding在定义算法名称的时候,不支持算法命名下划线_,支持横杠-,错误定义配置如下
由database_tenant改为database-tenant后,可成功启动项目,并按照自定义分库策略执行
更多推荐
The props`strategy` cannot be null when uses class based sharding strategy
发布评论