SSM中关于service中mapper注入失败org.springframework.beans.factory.UnsatisfiedDependencyException: Error crea

报错:org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org

原因:这个错误就是由于Mapper.xml放在了src/main/resources资源文件中,而扫描的位置却是:com.study.web.mapper

1,如果是这样配置:


那么遵守mapper文件位置,放一个文件夹上,如下图

SSM中关于service中mapper注入失败org.springframework.beans.factory.UnsatisfiedDependencyException: Error crea_第1张图片

你可能感兴趣的:(mybatis)