Spring Mybatis中的bug

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)问题,即在mybatis中dao接口与mapper配置文件在做映射绑定的时候出现问题,简单说,就是接口与xml要么是找不到,要么是找到了却匹配不到。

注意检查: xml文件中的配置属性

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): cn.tedu.mybatis.mapper.UserMapper.deleteByUsername

一般来说是spring配置文件中的SqlSessionFactoryBean配置有问题,请仔细查看

猜你喜欢

转载自blog.csdn.net/syl2850246/article/details/84351241