MyBatis使用Map做爲返回值

MyBatis使用Map做爲返回值 Map selectResultMap(Integer id); <!-- 須要再sql中給查詢的列起別名稱 as 的別名稱,會封裝入返回的map中 在使用中根據map的key獲取value 前者是key,後者是value --> <select id="selectResultMap" resultType="java.util.Map" parameter
相關文章
相關標籤/搜索