如何解决org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):问题

mybatis报错:Caused by: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.yth.dao.IProductDao.getProductWithType
在这里插入图片描述

写完代码报错,找了半天才发现dao层接口名称与xml文件名称不一致,到层的为ProductDao,xml的我写成了PruductDao.xml。
需检查dao层接口与xml是否一致

在这里插入图片描述

一定要细心

猜你喜欢

转载自blog.csdn.net/qq_41520945/article/details/109115153