异常:BindingException: Invalid bound statement (not found): cn.edu.aynu.dao.GoodsInfDao.queryById
1.使用框架:
SpringMVC
问题发生原因:
接口与resources下映射文件*.xml命名不一致问题,即dao层下接口命名为GoodsInfDao.xml,而dao层映射文件命名为GoodsInfDaoMapper.xml,命名不一致导致错误。
异常:BindingException: Invalid bound statement (not found): cn.edu.aynu.dao.GoodsInfDao.queryById
1.使用框架:
SpringMVC
问题发生原因:
接口与resources下映射文件*.xml命名不一致问题,即dao层下接口命名为GoodsInfDao.xml,而dao层映射文件命名为GoodsInfDaoMapper.xml,命名不一致导致错误。