Mybatis集成pagehelper and jsqlparser(分頁)

一:導入jar包 1、導入jsqlparser-0.9.5.jar與pagehelper-5.0.1.jar 二:創建表與實體類/編寫dao接口/映射文件 1、表數據 2、實體類 3、dao接口 4、映射文件 三:編寫SqlSessionFactory 1、在src目錄下創建SqlSessionFactory.xml文件 四:進行封裝公共分頁數據/獲取SqlSession的工具類 1、封裝公共分頁
相關文章
相關標籤/搜索