Mybatis注解学习--xxxMapper is not known to the MapperRegistry
今天晚上在学习Mybatis注解的时候,总是遇到错误Type interface com.souvi.ibatis.xxxMapper is not known to
the MapperRegistry,在网上搜索相关的解决方案时,得到的答案都不怎么详细,但知道了Mybatis注解一定要注册自己写的接口类,不然就会老报开头提到的这个错误。
下面举个例子:先看看项目的简单部署吧,如图:
转载
2014-04-09 10:24:28 ·
9797 阅读 ·
0 评论