title: Getting an error in jdbcTemplate.queryForObject(sql, new Object[] { user.getUserId(), user.getPassword() }, String.class);
body: <p>cant solve this exception </p>
  
  <pre><code>java.lang.NoSuchMethodError: org.springframework.dao.support.DataAccessUtils.nullableSingleResult(Ljava/util/Collection;)Ljava/lang/Object;
  </code></pre>
  
  
  
  <pre><code>String sql = "SELECT uname FROM USER_DATA WHERE uid=? AND upass=?";
  
      try {
          System.out.println("2222222222222");
          String userId = jdbcTemplate.queryForObject(sql, new Object[] {
                  user.getUserId(), user.getPassword() }, String.class);System.out.println("noooooo");
  
          return userId;
  
      } catch (Exception e) {
          e.printStackTrace();
          return null;
      }
  </code></pre>
  
  <p>my versions</p>
  
  <p>spring-boot-starter-parent 1.5.10.RELEASE,spring-boot-starter jdbc,
  spring-boot-starter-web,spring-boot-starter-test,spring-boot-starter-tomcat </p>
  
  <pre><code>            &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
              &lt;artifactId&gt;jstl&lt;/artifactId&gt;
              &lt;dependency&gt;
                          &lt;groupId&gt;org.eclipse.jdt.core.compiler&lt;/groupId&gt;
                          &lt;artifactId&gt;ecj&lt;/artifactId&gt;
                          &lt;version&gt;4.6.1&lt;/version&gt;
                          &lt;scope&gt;provided&lt;/scope&gt;
                      &lt;/dependency&gt;
          &lt;dependency&gt;
                      &lt;groupId&gt;org.apache.tomcat.embed&lt;/groupId&gt;
                      &lt;artifactId&gt;tomcat-embed-jasper&lt;/artifactId&gt;
                      &lt;scope&gt;provided&lt;/scope&gt;
                  &lt;/dependency&gt;
      &lt;dependency&gt;
                  &lt;groupId&gt;org.webjars&lt;/groupId&gt;
                  &lt;artifactId&gt;bootstrap&lt;/artifactId&gt;
                  &lt;version&gt;3.3.7&lt;/version&gt;
              &lt;/dependency&gt;
      &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-jdbc&lt;/artifactId&gt;
              &lt;version&gt;5.0.2.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;dependency&gt;
              &lt;groupId&gt;mysql&lt;/groupId&gt;
              &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
              &lt;version&gt;6.0.6&lt;/version&gt;
          &lt;/dependency&gt;
  &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  </code></pre>
  
  <p>About lines are in pom which all need to change kindly help</p>