第一原因就是 启动类
@MapperScan注解时引入了错误的包下的。
正确的应该是:import tk.mybatis.spring.annotation.MapperScan;
错误的引入了:import org.mybatis.spring.annotation.MapperScan
第二个原因是因为
@MapperScan注解 扫描路径 扫描了MySqlMapper<T> 和Mapper<T>
第一原因就是 启动类
@MapperScan注解时引入了错误的包下的。
正确的应该是:import tk.mybatis.spring.annotation.MapperScan;
错误的引入了:import org.mybatis.spring.annotation.MapperScan
第二个原因是因为
@MapperScan注解 扫描路径 扫描了MySqlMapper<T> 和Mapper<T>