mybatis 得到一個map的返回集合

在使用mybatis 查詢結果集,有時會有需求返回一個map好比表html id username  sql 1  name1mybatis 2 name2post 3 name3htm 但願的查詢結果是一個map 而且以id爲key  表爲實體blog 那麼這時候須要使用註解@MapKeyevent @MapKey("eventTag") public Map<String, User> sel
相關文章
相關標籤/搜索