严重: Servlet.service() for servlet [springmvc] in context with path [/SecondClassroom] threw exception [Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): team.dao.course.CourseDao.addCourse] with root cause
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): team.dao.course.CourseDao.addCourse
原因是mybatis-config文件忘记把 CourseMapping.xml文件配置进来。
加上
<mapper resource="mapper/course/CourseMapper.xml"/>