在IbatiS的select中有两个占位符 # 和 $
我们先看一个查询语句:
select * from user where Name = #userName#;
ibatis解析成:select * from user where Name = ? 这样的语句,然后在填充参数。
select * from user where Name = ‘$userName$’
ibatis解析成:select * from user where Name = '传过来的值' (传过来的值直接填充)