spring整合mybatis存在问题,求助

大佬能否帮忙看看这个问题。

在spring 整合mybatis的过程中 出现了这样的问题:

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'accountService': Unsatisfied dependency expressed through field 'accountMapper': Error creating bean with name 'org.mybatis.spring.SqlSessionFactoryBean#0': Lookup method resolution failed


spring各个依赖版本一致、创建sqlSessionFactoryBean对象配置无问题。

然后,accountService对象中存在属性 AccountMapper,这里用的@Autowired注入,

在spring的配置文件中也配置了Mapper扫描配置器

啊!!!SoS,感谢大佬们

0个评论
点击登录,快来和大家讨论吧~
表情
图片
暂无评论
l_
下载 APP