在学习mybatis中的接口是发生错误Type interface com.souvi.ibatis.xxxMapper is not known to the MapperRegistry

今天晚上在学习Mybatis注解的时候,总是遇到错误Type interface com.souvi.ibatis.xxxMapper is  not known to the MapperRegistry,在网上搜索相关的解决方案时,得到的答案都不怎么详细,但知道了Mybatis注解一定要注册自己写的接口类,不然就会老报开头提到的这个错误。

 

出错原因:在mybatis_conifg.xml中未指定映射文件的路径

 

posted @ 2018-10-09 18:08  风few  阅读(210)  评论(0编辑  收藏  举报