摘要: 没看懂 阅读全文
posted @ 2018-03-02 12:01 SkyeAngel 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 实际开发中,我们通常也会写一些存储过程,MyBatis也支持对存储过程的调用• 一个最简单的存储过程 oracle中创建存储过程 • 存储过程的调用1、 select标签中statementType=“CALLABLE”2、标签体中调用语法:{call procedure_name(#{param1 阅读全文
posted @ 2018-03-02 11:29 SkyeAngel 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 测试时:只需要在创建SQLSession的openSession时,指定SqlSession openSession = sqlSessionFactory.openSession( ExecutorType.BATCH ); 而与Spring整合时:在Spring的配置文件applicationC 阅读全文
posted @ 2018-03-02 10:59 SkyeAngel 阅读(214) 评论(0) 推荐(0) 编辑
摘要: • PageHelper是MyBatis中非常方便的第三方分页插件。• 官方文档:https://gitee.com/free/Mybatis_PageHelper 我们可以对照官方文档的说明,快速的使用插件 https://github.com/pagehelper/Mybatis-PageHel 阅读全文
posted @ 2018-03-02 10:08 SkyeAngel 阅读(292) 评论(0) 推荐(0) 编辑