摘要: 添加spring-test模块 测试mapper接口是否成功 批量插入的时候我们得配置 分页查询 1、引用一个分页插件PageHelper https://github.com/pagehelper/Mybatis-PageHelper 看里面有个中文文档,引用完jar,点击 如何使用分页插件 首先 阅读全文
posted @ 2017-05-03 18:10 夏末、初秋 阅读(1535) 评论(0) 推荐(0) 编辑
摘要: 参考http://www.cnblogs.com/sunzn/archive/2013/03/14/2960248.html 阅读全文
posted @ 2017-05-03 17:28 夏末、初秋 阅读(138) 评论(0) 推荐(0) 编辑
摘要: mybatis generator http://www.mybatis.org/generator/ 1、首先要引用jar包 2、添加一个配置文件mgb.xml(MBG配置(mybatis generator简称)) http://www.mybatis.org/generator/configr 阅读全文
posted @ 2017-05-03 15:32 夏末、初秋 阅读(1079) 评论(0) 推荐(0) 编辑