<!--Map<String, Object> getUserToMap(@Param("id") int id);--> <selectid="getUserToMap"resultType="map"> select * from t_user where id = #{id} </select> <!--结果:{password=123456, sex=男, id=1, age=23, username=admin}-->
<!--List<User> testMohu(@Param("mohu") String mohu);--> <selectid="testMohu"resultType="User"> <!--select * from t_user where username like '%${mohu}%'--> <!--select * from t_user where username like concat('%',#{mohu},'%')--> select * from t_user where username like "%"#{mohu}"%" </select>