![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
框架
newzhong1
没有简介
展开
-
【Mybatis】- 一个关键词匹配多个列进行模糊查询
方式1-使用mysql函数 INSTR(str, substr) INSTR(str, substr) 在指定的字符串(str)中,搜索指定的字符(substr),返回发现指定的字符的位置; CONCAT_WS:把需要查询的字段数据拼接起来 <select id="queryPageListByParams" parameterType="java.util.Map" resultMap="userMap"> SELECT <include re原创 2021-03-01 15:38:05 · 766 阅读 · 3 评论 -
【Mybatis】- 模糊查询方式汇总- 分析
Mybatis- 模糊查询 1.传入接口的字符串拼接"%like%" --使用#{…} 动态解析 -> 预编译 -> 执行 没有在Mapper文件拼接%的情况 <!-- 根据名称模糊查询 --> <select id="findByName" resultType="com.newzhong.pojo.User" parameterType="String"> <if test="userName != null and userName != ''">原创 2020-12-26 00:13:44 · 236 阅读 · 1 评论 -
Mytais的工作原理与缓存
文章目录mybatis的工作原理分为以下六步:Mybatis的缓存机制一级缓存二级缓存Mybatis常见问题\#{}和${}的区别是什么?Mybatis半自动ORM映射工具与全自动的区别? mybatis的工作原理分为以下六步: 将 mybatis-config.xml转成 InputStream流对象; 根据 InputStream流对象解析出 Configuration对象,然后创建 Sql...原创 2019-10-30 10:33:30 · 162 阅读 · 0 评论