title: How to get Map data using JDBCTemplate.queryForMap
body: <p>How to load data from <code>JDBCTemplate.queryForMap()</code> and it returns the Map Interface.How the  maintained the query data internally in map.I trying to load but i got below exception i.e., <strong>org.springframework.dao.IncorrectResultSizeDataAccessException: Incorrect result</strong></p>
  
  <p>Code:-</p>
  
  <pre><code>public List getUserInfoByAlll() {
      List profilelist=new ArrayList();
      Map m=new HashMap();
      m=this.jdbctemplate.queryForMap("SELECT userid,username  FROM USER");
      Set s=m.keySet();
      Iterator it=s.iterator();
      while(it.hasNext()){
          String its=(String)it.next();
          Object ob=(Object)m.get(its);
          log.info("UserDAOImpl::getUserListSize()"+ob);
      }
      return profilelist;
  }
  </code></pre>
  
  <p>Plz help me</p>