Mybatis查询 返回map集合


Mybatis查询 返回map集合

  • 返回一个

    
    
    Map map = new() 类.getReturnMap(3);
    map.get("username");   //返回  查出来的username
    
  • 返回多个

    
    
    List list =  类.getReturnListMap;
    list.forEach(map->System.out.println(map));
    

相关