欢迎光临散文网 会员登陆 & 注册

然叔前端工程化实践

2022-12-27 19:46 作者:666好听的名字  | 我要投稿

 @Select注解动态SQL拼写

普通的字符串值,只能实现变量的替换功能,实现简单的SQL语句,如下所示

@Select("select * from t_person where id = #{id}")Person selectPersonById(Integer id);


 

然叔前端工程化实践的评论 (共 条)

分享到微博请遵守国家法律