Type interface com.binarysoft.service.region.RegionDAO is not known to the MapperRegistry.

来源:互联网 发布:java string默认编码 编辑:程序博客网 时间:2024/06/11 20:52

前天在写简单的region增删改查的时候,按照别人的模板自己创建的Region,在编译的时候报的这个错误,其实就是config下面的mybatis-config.xml文件没有编译对应的mapper

<mappers>
<mapper class="com.binarysoft.service.user.UserInfoDAO" />
<mapper class="com.binarysoft.service.product.ProductDAO" />
<mapper class="com.binarysoft.service.student.StudentDAO" />
<mapper class="com.binarysoft.service.region.RegionDAO" />
</mappers>

加入对应的dao文件名就可以了


0 0
原创粉丝点击