首先: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的版本不配置

报错解决:


















