mybatis异常

一、Invalid bound statement

1.mapper.xml中namespaces错误(***)

2.方法不存在

3.方法返回值错误

二、Mapped Statements collection does not contain

1.namespaces错误

2.<property name="mapperLocations" value="classpath*:com/huaxin/**/*Mapper.xml"></property> 中缺少classpath后面的*

三、could not find resource

1.配置文件mappers中使用通配符

posted @ 2016-05-19 20:45  琅琊天  阅读(113)  评论(0编辑  收藏  举报