Fight With Me!!!

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

随笔分类 -  Mybatis

mybatis 中 foreach collection的三种用法
摘要:转载出处:https://www.cnblogs.com/fangyu19900812/p/6046209.html参考:http://www.cnblogs.com/ruiati/p/6410339.htmlforeach的主要用在构建in条件中,它可以在SQL语句中进行迭代一个集合。 forea 阅读全文

posted @ 2020-02-29 00:07 nickTimer 编辑

There is no getter for property named 'id' in 'class java.lang.Integer
摘要:There is no getter for property named 'id' in 'class java.lang.Integer 问题描述: 使用mybatis传入参数, 当参数类型是String ,Integer 等这些时。如果用他的<if test="id != null and i 阅读全文

posted @ 2020-02-15 14:55 nickTimer 编辑

Mapper 文件中SQL不等于的写法
摘要:Mybatis中的mapper文件中不等于的几种写法在XML文件中是不可以直接使用 < 、>、&的,语法检查会报错误。如需使用,需要将其转义为对应的实体。 预期执行SQL效果:select t.name form tablenme t where t.code <> 1; 第一种:转义 &lt; < 阅读全文

posted @ 2020-02-15 14:52 nickTimer 编辑

点击右上角即可分享
微信分享提示