MyBatis查询的三种方式 返回单个对象 selectOne 返回对象List集合 selectList 返回对象Map集合 selectMap <select id="selectOne" resultType="user"> select * from user where id=1 </select> <select id="selectAll" resultType="user" > select * from user </select> <select id="selectMap" resultType="map"> select * from user </select>