
The props`strategy` cannot be null when uses class based sharding strategy
利用shardingjdbc(5.0.0-beta)分库,自定义了分库策略,项目启动报错:The props`strategy` cannot be null when uses class based sharding strategy
发现sharding在定义算法名称的时候,不支持算法命名下划线_,支持横杠-,错误定义配置如下
由database_tenant改为database-tenant后,可成功启动项目,并按照自定义分库策略执行
👁️ 阅读量:0
© 版权声明:本文《The props`strategy` cannot be null when uses class based sharding strategy》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686592874a301214.html。