mybatis
ldlly0505
这个作者很懒,什么都没留下…
展开
-
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 · 4323 阅读 · 0 评论 -
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.Persiste
<select id="getCountByCondition" resultType="int" > select * from user <where> <if test="name != null and name != ''"> name = #{name} ...原创 2019-12-13 10:52:57 · 1019 阅读 · 0 评论 -
mybatis学习笔记三
1.找出今天以前的user数据 mapper文件: @Mapper public interface UserMapper { public List<User> findByDate(Date createTime); } 隐射文件: <select id="findByDate" resultMap="user"> selec...原创 2019-12-12 20:38:47 · 451 阅读 · 0 评论