出现这个错误你要保证你的代码是正确的,注意个别地方的细节,如果都没有问题,再检查版本问题!!!
首先:spring整合MyBatis是出现这个错误:
Exception in thread "main" org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userServiceImpl': Unsatisfied dependency expressed through field 'userMapper': Error creating bean with name 'sqlSessionFactory': Lookup method resolution failed
?原因:maven版本问题,jkd版本与spring和mybaits的版本不配置
?报错解决: