Don’t say much, just explain the reason
Similar to @MapperScan(basePackages = "com.hyxiao.user.mapper")
The import package of the start-up mapper scan annotation is correct
import tk.mybatis.spring.annotation.MapperScan; // 正确
Instead of this
import org.mybatis.spring.annotation.MapperScan;// 错误
Dismissal. . .