![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatis学习笔记
ldlly0505
这个作者很懒,什么都没留下…
展开
-
mybatis笔记四
记录下动态sql的常用标签:1.where一般用作数据操作添加的条件例子: <select id="selectByRoleId" resultMap="resource"> select * from resource <where> role_id = #{roleId} <...原创 2019-12-13 20:57:09 · 179 阅读 · 2 评论 -
org.apache.ibatis.binding.BindingException: Mapper method 'com.example.demo.mapper.UserMapper.findCo
<select id="findCountByContditon" resultMap="user" parameterType="com.example.demo.po.User"> select count(id) from user <where> <if test="na...原创 2019-12-13 20:04:19 · 4334 阅读 · 0 评论 -
mybatis学习笔记三
1.找出今天以前的user数据mapper文件:@Mapperpublic interface UserMapper { public List<User> findByDate(Date createTime);}隐射文件:<select id="findByDate" resultMap="user"> selec...原创 2019-12-12 20:38:47 · 461 阅读 · 0 评论 -
mybatis笔记一
1.什么是mybatis?官网是这样介绍的:附地址:https://mybatis.org/mybatis-3/What is MyBatis? MyBatis is a first class persistence framework with support for custom SQL, stored procedures and advanced mappings....原创 2019-12-08 10:51:10 · 215 阅读 · 0 评论