- 博客(1)
- 收藏
- 关注
原创 博客摘录「 【详解】@Param注解的用法」2024年8月8日
SQL语句中,通过#{userId}进行取值给SQL的参数赋值。2、实例: 实例一:@Param注解基本类型的参数 mapper中的方法:public User selectUser(@Param("userName") String name,@Param("password") String pwd); 映射到xml中的<select>标签<select id="selectUser" resultMap="User"> select * from user whe
2024-09-29 09:12:32
804
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅