admin管理员组文章数量:1794759
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后,可成功启动项目,并按照自定义分库策略执行
本文标签: nullstrategypropsshardingBased
版权声明:本文标题:The props`strategy` cannot be null when uses class based sharding strategy 内容由林淑君副主任自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.xiehuijuan.com/baike/1686592655a85429.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论