一、该问题的重现步骤是什么?
1. 加入sharding-jdbc,maven以后会报sql工厂丢失,bean没有启动.
3。是不是必须关闭多租户?但是多租户有用怎么办?
二、你期待的结果是什么?实际看到的又是什么?
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
四、请提供详细的错误堆栈信息,这很重要。
Error creating bean with name 'application': Unsatisfied dependency expressed through field 'scriptService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'KScriptServiceImpl': Unsatisfied dependency expressed through field 'baseMapper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'KScriptMapper' defined in file [D:\code\mdm-api\target\classes\org\springblade\modules\kettle\mapper\KScriptMapper.class]: Invocation of init method failed; nested exception is java.lang.IllegalAr
Error creating bean with name 'KScriptMapper' defined in file [D:\code\mdm-api\target\classes\org\springblade\modules\kettle\mapper\KScriptMapper.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
五、若有更多详细信息,请在下面提供。
请问用的是开源版么?开源版可以参考下这个:https://github.com/dynamic-datasource/dynamic-datasource-samples/tree/master/third-part-samples/shardingsphere-sample。我们后续也会更新至开源版支持sharding
扫一扫访问 Blade技术社区 移动端