mybatis异常

时间:2025-02-12 10:05:05

一、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中使用通配符