MyBatisPlus
文章平均质量分 54
yubin1285570923
这个作者很懒,什么都没留下…
展开
-
mybatis-plus: xml中大于小于等操作,ognl表达式test
第一种方法:用了转义字符把>和<替换掉,然后就没有问题了。第二种方法<![CDATA[ ]]>因为这个是xml格式的,所以不允许出现类似“>”这样的字符,但是都可以使用<![CDATA[ ]]>符号进行说明,将此类符号不进行解析你的可以写成这个:mapper文件示例代码<![CDATA[ when min(starttime)<='12:00' and max(endtime)<='12:00' ]]>动态sql中choose原创 2021-07-05 23:57:28 · 2005 阅读 · 0 评论 -
Mybatis-plus:update updateById
一、根据id更新User user = new User();user.setUserId(1);user.setAge(29);user.updateById(); orInteger rows = userMapper.updateById(user);二、条件构造器作为参数进行更新UpdateWrapper<User> updateWrapper = new UpdateWrapper<>();updateWrapper.eq("name","shi原创 2021-05-26 10:29:37 · 8964 阅读 · 2 评论 -
Mybatis:xml文档不能被maven编译到class中解决方案
<!-- 项目打包时会将java目录中的*.xml文件也进行打包 --><build> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include> ...原创 2020-05-09 09:32:37 · 469 阅读 · 0 评论 -
mybatisPlus:简介及学习总结及应用
代码地址:git@github.com:kathrinacathy/mybatisAndmybatisPlus.gitMyBatis-Plus(简称 MP),是一个 MyBatis 的增强工具包,只做增强不做改变. 为简化开 发工作、提高生产率而生 我们的愿景是成为 Mybatis 最好的搭档;官方地址: http://mp.baomidou.com 代码发布地址: Githu...原创 2019-08-07 07:59:44 · 3675 阅读 · 0 评论