MyBatis-generator使用,爲Example添加分頁

數據庫爲MySQL。 1. 在Example類裏,加入兩個變量,startRow和pageSize,分別表示起始索引與頁面容量,而後生成setter與getter方法。 2. 在對應的XXXMapper.xml文件中select id爲」selectByExample」的<select></select>標籤對的最後加上:web <if test="startRow != null and pag
相關文章
相關標籤/搜索