在进行srping和mybatis框架整合时发生的错误
警告: Exception encountered during context initialization - cancelling refresh attempt: 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
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
在这里插入图片描述
原因
maven导入的依赖版本过低,不支持,mybatis-spring应该是3.x版本及以上才行
org.mybatis
mybatis-spring
2.0.7
运行成功