报错解决:Error creating bean with name ‘userServiceImpl‘

首先: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

报错解决:Error creating bean with name ‘userServiceImpl‘_第1张图片

 原因:maven版本问题,jkd版本与spring和mybaits的版本不配置

报错解决:Error creating bean with name ‘userServiceImpl‘_第2张图片

 报错解决:报错解决:Error creating bean with name ‘userServiceImpl‘_第3张图片

你可能感兴趣的:(java,tomcat,mybatis)