普通的字符串值,只能實現(xiàn)變量的替換功能,實現(xiàn)簡單的SQL語句,如下所示
SQL
@Select("select * from t_person where id = #{id}")Person selectPersonById(Integer id);
?