- 博客(2)
- 收藏
- 关注
原创 Springboot常用注解总结
Param的作用就是给参数命名,比如在mapper里面某方法A(int id),当添加注解后A(@Param("userId") int id),也就是说外部想要取出传入的id值,只需要取它的参数名userId就可以了。其中的where user_name = #{userName} and user_password = #{password}中的userName和password都是从注解@Param()里面取出来的,取出来的值就是方法中的形参String name以及String pwd的值。....
2022-08-10 16:59:32
1177
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人