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是否一致
一定要细心
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是否一致
一定要细心