springboot版本怎么加入sharding-jdbc

Blade 未结 1 320
lcb
lcb 剑童 2024-01-16 13:24

一、该问题的重现步骤是什么?

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

五、若有更多详细信息,请在下面提供。


1条回答
提交回复