MyBatis
goldmei88
程序猿
展开
-
MySQL数据库中字段类型为tinyint,读取出来为true/false的问题
MySQL数据库中字段类型为tinyint,读取出来为true/false的问题转载 2017-02-17 11:51:38 · 3944 阅读 · 1 评论 -
Mybatis:批量操作
https://blog.csdn.net/saytime/article/details/79003765转载 2018-11-21 17:16:41 · 122 阅读 · 0 评论 -
mybatipse(Myeclipse插件)安装动态显示mapper和dao接口的映射关系
打开myeclipse=》help=》Install from Site输入:http://dl.bintray.com/harawata/eclipse/原创 2018-04-25 14:39:26 · 1428 阅读 · 0 评论 -
mybatis三剑客之一 Mybatis generator 插件使用
https://www.cnblogs.com/Erma-king/p/6694516.html转载 2018-04-09 15:49:21 · 235 阅读 · 0 评论 -
mybatis三剑客之三 Mybatis分页插件PageHelper
https://github.com/pagehelper/Mybatis-PageHelper转载 2018-04-09 15:06:45 · 157 阅读 · 0 评论 -
mybatis三剑客之二 Mybatis-plugin(IDEA插件)动态显示mapper和dao接口的映射关系
https://my.oschina.net/iyinghui/blog/1615186转载 2018-04-09 14:44:10 · 1453 阅读 · 0 评论 -
Mybatis中添加一条记录返回记录主键id
Mybatis中添加一条记录,返回记录主键id:mapper.xml中写法: useGeneratedKeys="true" keyProperty="id"> INSERT INTO xb_consultants_message_reply(message_id,user_from,user_to,reply_content) VALUES(#{m原创 2017-10-27 10:37:06 · 1565 阅读 · 0 评论 -
Mybatis异常There is no getter for property named或Returning cached instance of singleton bean
mapper接口中的参数需要加上@Param(value="xxx"),如:getComFairList(@Param(value = "comCode") String comCode)原创 2017-02-28 16:53:28 · 21788 阅读 · 2 评论 -
Mybatis中mapper文件各种特殊符号:<,>,<=,>=,<>等表示
1.CDATA区:它的全称为character data,以"" 结束,在两者之间嵌入不想被解析程序解析的原始数据,解析器不对CDATA区中的内容进行解析,而是将这些数据原封不动地交给下游程序处理。2.特殊字符 :xml 中表示: = 大于等于 需加 这样的标记: xml中有&的符号,需要这样表示&>= 大于等于:= ]]>原创 2017-05-12 10:48:38 · 5752 阅读 · 0 评论 -
MyBatis关联表映射(一对多、多对多、一对一、多对一)
http://www.cnblogs.com/xdp-gacl/p/4264440.htmlhttp://www.tuicool.com/articles/M3QJvu转载 2017-05-02 17:32:16 · 509 阅读 · 0 评论 -
Mybatis中mapper.xml文件判断语句中的单双引号问题
Mybatis中mapper.xml文件判断语句中的单双引号问题原创 2017-03-14 10:51:55 · 7263 阅读 · 1 评论 -
MyBatis把传过来的Integer类型的0当作空字符串
MyBatis把传过来的Integer类型的0当作空字符串原创 2017-03-28 18:06:23 · 3428 阅读 · 3 评论 -
Mybatis的分页插件PageHelper源码解析和性能优化
1、Maven中引入依赖2、代码中分页的使用3、源码分析PageHelper.startPage(page,pageSize);设置页码和每页显示的条数查看源码PageInterceptor类,实现了Interceptor接口实现了Interceptor接口会重写下面三个方法定义了拦截器,拦截Executor的query方法在执行以...原创 2019-07-07 12:39:41 · 2815 阅读 · 1 评论