普通的字符串值,只能实现变量的替换功能,实现简单的SQL语句,如下所示
SQL
@Select("select * from t_person where id = #{id}")Person selectPersonById(Integer id);