MyBatis基本使用4注解

@Select("select * from test where id=#{id}")
Test GetById2(int id);
无需在xml中添加,适合简单的SQL语句。
posted @ 2022-05-25 18:51  Xyang  阅读(17)  评论(0编辑  收藏  举报
hi