mybatis报错记录

org.apache.ibatis.inding.BindingException:Invalid bound statement(not found)

1.mybatis mapper.xml中sql的配置的返回参数 resultMap="map"  就会报这个错  ,resultMap是需要在mapper.xml文件中进行配置,指定到某个对象,如果返回时hashMap的话 就 改成resultType="map";

2.java命名空间没有对应上导致resultMap找不到对象

猜你喜欢

转载自love-liudawei-163-com.iteye.com/blog/2258909