- 博客(2)
- 收藏
- 关注
原创 Mybatis小解
jdbc ReflectionException 反射异常 对象传参是里面值要和属性对应<select id="getUsersByPage" resultTyoe="com.janes.pojo.User">select * from user limit #{p}select *from user limit #{size},#{age}map<String ,Interger>=nea HashMap map.putMybatis的三种实现方式1.纯xml方式实
2022-04-26 15:57:29 451
原创 MyBatis小总结
@param参数绑定简单数据类型在Mapper的 Student findStudentByNameAndAddress(@Param("name"),@Param("addr") String name, 参数绑定使用 select * from Student w here name=#{name} and address=#{addr}复杂数据类型 select * from student where name=#{name} an...
2022-03-18 00:03:25 907
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人