
mybatis
代码羊羊
业精于勤荒于嬉
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
spring(spring-boot) + mybatis多数据源
1、spring 多数据源一致性事务方案 http://www.cnblogs.com/ityouknow/p/4977136.html2、springboot+mybatis多数据源最简解决方案 http://www.cnblogs.com/ityouknow/p/6102399.html...转载 2018-04-02 15:54:50 · 185 阅读 · 0 评论 -
mybatis特殊字符模糊匹配
1、如果user表中存放的username格式如下图,其中包含特殊符号,如果进行模糊匹配用like肯定是不行的了 SELECT u.* from `user` u where u.username like '%_%' 2、解决方法:使用instr函数 select u.* from user u <where> ...原创 2018-03-27 17:01:13 · 1454 阅读 · 0 评论 -
mybatis mapper.xml入参为0的处理
<if test="status != null and status != '' or status ==0"> AND status= #{status,jdbcType=INTEGER} </if>原创 2018-03-27 16:55:11 · 2732 阅读 · 0 评论