看报错是 `CourseMapper` 没有被注册成为一个bean啊,试试以下两步 1.在启动类加上注解 @MapperScan("com.ztt.bootest.mapper") 2.在 `CourseMapper` 这个类上加上 `@Repository` 注解
阅读量:1
点赞量:0