mybatis
π_π哦
这个作者很懒,什么都没留下…
展开
-
Mybatis 动态SQL语句Select语句(一)
<select id="findActiveBlogWithTitleLike" resultType="Blog"> SELECT * FROM BLOG WHERE state = ‘ACTIVE’ <if test="title != null"> AND title like #{title} </if> </select> 属性名 作用 id Mapper对应的接口的映射名称 – – resultTy原创 2020-11-17 20:24:31 · 480 阅读 · 0 评论 -
Tag name expected 解决
写Mybatis中 xml文件时出的错 xml文件不会自动识别 < 的含义 在写条件语句时 改用<来代替<号 <select id="searchIbeacon" resultType="com.example.wx.sign.entity.Sign"> select * from sign <where> <if test=""> #{signTi原创 2020-10-28 11:03:05 · 18541 阅读 · 3 评论