mybatis
isaac男
isaac是聪明体贴的学者型男人
展开
-
spring+mybatis两种事务控制编写
一.声明式事务管理 1.spring主配置文件头部添加以下代码 xmlns:aop=”http://www.springframework.org/schema/aop” xmlns:tx=”http://www.springframework.org/schema/tx” xsi:schemaLocation下添加如下代码: http://www.sp...原创 2018-03-19 17:17:03 · 8650 阅读 · 0 评论 -
mybatis动态SQL标签的使用
1.insert标签2.update标签3.delete标签4.select标签5.sql标签6.include标签7.bind标签 参数绑定,比如like查询8.if标签9.where标签 where 标记会自动将其后第一个条件的and或者是or给忽略掉<where> <if test="id != null ">i...原创 2019-05-09 15:58:22 · 331 阅读 · 0 评论