当前使用版本(必须填写清楚,否则不予处理)

3.3.1.tmp版本

该问题是怎么引起的?(最新版上已修复的会直接close掉)

使用springboot2.2.5.RELEASE 整合mybatis-plus,配置了扫描包,

重现步骤

springboot2.2.5.RELEASE整合mybatis-plus3.3.1.tmp,配置userServiceImpl继承ServiceImpl 以及UserMapper继承BaseMapper<>,运行项目报错 然后引入 com.baomidou mybatis-plus-extension 3.3.1.tmp 项目可以正常运行

报错信息

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userServiceImpl': Unsatisfied dependency expressed through field 'baseMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sysUserMapper' defined in file [E:\xuexi\xmall\mall2\target\classes\com\mall\project\system\user\mapper\SysUserMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: org/mybatis/logging/LoggerFactory

Comment From: nieqiurong

自行检查依赖mybatis-spring冲突问题.