Mybatis中resultType爲hashmap的情況

現在有一張user表   id ,name,age 我們進行一個簡單的查詢: <select id="test" resultType="Uer">          select id ,name,age  from user </select> 查詢完後,怎麼去接收這個查詢結果呢,通常在這個mapper.xml對應的接口中使用List<User>做爲返回值去接收,最後存儲的樣子就是下面的圖 這
相關文章
相關標籤/搜索