随笔分类 - Mybatis
Mybatis @Select注解,使用in传入ids数组作为参数 &&当参数为空则不添加该参数的判断
摘要:@Select({ "<script>", "select", "id, name, user_id", "from label", "where id in", "<foreach collection='ids' item='id' open='(' separator=',' close=')
阅读全文
MyBatis 注解方式批量插入数据库
摘要:@Insert({ "<script>", "insert into table_name(column1, column2, column3) values ", "<foreach collection='Listmap' item='item' index='index' separator=
阅读全文
Mybatis反向生成代码
摘要:Mybatis反向生成代码 参考资料: mybatis反向生成
阅读全文
MyBatis动态sql when条件等于数字
摘要:<if test=" 4 == flag "> , LAST_CHECK_TIME = sysdate </if>
阅读全文
SpringBoot mybatis分页不生效
摘要:如上,mybatis 分页查询的userPageList为Page对象,直接转换为PageInfo对象后,会从Page对象中解析分页结果信息,但是上面红色部分,将Page对象直接转换为了List对象,List对象转换为 PageInfo对象之后,分页信息丢失,导致分页查询不生效,每次只能查询当前页码
阅读全文
Mybatis3.2.3+mysql第一个例子(入门)
摘要:Mybatis3.2.3+mysql第一个例子(入门)
阅读全文
MyBatis入门示例
摘要:http://wanqiufeng.blog.51cto.com/409430/515132
阅读全文
浙公网安备 33010602011771号