No qualifying bean of type 'org.apache.shardingsphere.infra.config.mode.ModeConfiguration'

升级到5.0 启动springboot 报错:
Unsatisfied dependency expressed through bean property ‘sqlSessionFactory’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘sqlSessionFactory’ defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Unsatisfied dependency expressed through method ‘sqlSessionFactory’ parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘dataSource’ defined in class path resource [org/apache/shardingsphere/spring/boot/ShardingSphereAutoConfiguration.class]: Unsatisfied dependency expressed through method ‘dataSource’ parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘org.apache.shardingsphere.infra.config.mode.ModeConfiguration’ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}

Hi, 您可以把您的配置贴一下吗?

是我配置弄错了,问题已改正了

好的, 欢迎又问题再反馈哈

京ICP备2021015875号