武小新
Java后端
·2024-05-08
#提问# 求助!!!在用户中心项目13节——代码生成器的使用中,测试UserService时出现报错,百度也没找到好的解决措施。 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 'userMapper' defined in file [E:\07_星球项目\user-center\target\classes\com\xiaoxin\usercenter\mapper\UserMapper.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.BootstrapMethodError: java.lang.NoSuchMethodError: org.apache.ibatis.session.Configuration.setArgNameBasedConstructorAutoMapping(Z)V 和视频教程的差别就是数据库版本不同(mysql8.0)、IDEA是23版本
0个评论
点击登录,快来和大家讨论吧~
表情
图片
暂无评论
下载 APP