问题描述:
用mybatis写了一个组合语句查询,报错:org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'eduChapterController': Unsatisfied dependency expressed through field 'chapterService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException,导致项目无法启动,如下图:
原因:
xml文件配置错误,我自己的项目对应的类的全路径是com.atguigu.service.entity.vo.CoursePublishVo,而写成了com.atguigu.eduservice.entity.vo.CoursePublishVo,所以项目启动报错
解决:改成正确的id或者路径就好了
启动成功: