不写xml文件,直接在接口函数中使用

@Select("select * from tb_user where id  = #{id}")

注释实现简单的功能

配置文件完成复杂的功能

 

posted on 2023-11-06 19:56  na2co3-  阅读(15)  评论(0)    收藏  举报