https://blog.csdn.net/u__f_o/article/details/82756701 

 

一般出现这种情况,应该是没有扫描到对应的mapper包,即在启动类下配置MapperScan时导错了包。

此时应该导入的包是

tk.mybatis.spring.annotation.MapperScan,

而不是 

org.mybatis.spring.annotation.MapperScan



相关文章:

猜你喜欢
相关资源
相似解决方案