mybatis
980930988
于无声处听惊雷
展开
-
BindingException: Invalid bound statement (not found): cn.edu.aynu.dao.GoodsInfDao.queryById
异常:BindingException: Invalid bound statement (not found): cn.edu.aynu.dao.GoodsInfDao.queryById 1.使用框架: SpringMVC 问题发生原因: 接口与resources下映射文件*.xml命名不一致问题,即dao层下接口命名为GoodsInfDao.xml,而dao层映射文件命名为GoodsInfDaoMapper.xml,命名不一致导致错误。 ...原创 2021-03-25 08:44:39 · 159 阅读 · 0 评论 -
分页查询数据说明
分页查询 sql: <select id="findPageData" resultType="user"> select * from t_user limit #{pageIndexes},#{pageCount} </select> dao: ```java List<User> findPageData(Map<String ,Integer> hashMap) ; test: UserDao userDao = sqlSessi.原创 2020-09-24 08:42:03 · 297 阅读 · 0 评论