title: RestTemplate returning null when serialized to POJO
body: <p>I was following the start-up guide of at spring website <a href="https://spring.io/guides/gs/consuming-rest/" rel="nofollow noreferrer">https://spring.io/guides/gs/consuming-rest/</a>. </p>
  
  <p>I am not following the exact tutorial in the sense that I am using another endpoint: <a href="http://www.omdbapi.com?s=rush" rel="nofollow noreferrer">http://www.omdbapi.com?s=rush</a>.</p>
  
  <p>I am having an issue with JSON conversion to POJO. I am not getting any error or exceptions. Could someone point out where am I going wrong? </p>
  
  <p>You can find the complete code <a href="https://github.com/amriteyapandey/java-rest-consumption" rel="nofollow noreferrer">here</a></p>
  
  <p>Here are my POJOs:</p>
  
  <pre><code>package com.sample.restapi.model;
  
  import java.util.List;
  
  import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
  
  @JsonIgnoreProperties(ignoreUnknown=true)
  public class SearchResponse {
  
      private List&lt;Search&gt; search;
  
      private String totalResults;
  
      private String response;
  
      public SearchResponse() {
  
      }
  
      public List&lt;Search&gt; getSearch() {
          return search;
      }
  
      public void setSearch(List&lt;Search&gt; search) {
          this.search = search;
      }
  
      public String getTotalResults() {
          return totalResults;
      }
  
      public void setTotalResults(String totalResults) {
          this.totalResults = totalResults;
      }
  
      public String getResponse() {
          return response;
      }
  
      public void setResponse(String response) {
          this.response = response;
      }
  
      @Override
      public String toString() {
          return "SearchResponse [search=" + search + ", totalResults=" + totalResults + ", response=" + response + "]";
      }
  
  }
  </code></pre>
  
  <p>Here is the Search.java</p>
  
  <pre><code>package com.sample.restapi.model;
  
  import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
  
  @JsonIgnoreProperties(ignoreUnknown=true)
  public class Search {
  
      private String title;
  
      private String year;
  
      private String imdbID;
  
      private String type;
  
      private String poster;
  
      public Search() {
  
      }
  
      public String getTitle() {
          return title;
      }
  
      public void setTitle(String title) {
          this.title = title;
      }
  
      public String getYear() {
          return year;
      }
  
      public void setYear(String year) {
          this.year = year;
      }
  
      public String getImdbID() {
          return imdbID;
      }
  
      public void setImdbID(String imdbID) {
          this.imdbID = imdbID;
      }
  
      public String getType() {
          return type;
      }
  
      public void setType(String type) {
          this.type = type;
      }
  
      public String getPoster() {
          return poster;
      }
  
      public void setPoster(String poster) {
          this.poster = poster;
      }
  
      @Override
      public String toString() {
          return "Search [title=" + title + ", year=" + year + ", imdbID=" + imdbID + ", type=" + type + ", poster="
                  + poster + "]";
      }
  }
  </code></pre>
  
  <p>Here is the driver class.</p>
  
  <pre><code>package com.sample.restapi;
  
  import org.slf4j.Logger;
  import org.slf4j.LoggerFactory;
  import org.springframework.boot.autoconfigure.SpringBootApplication;
  import org.springframework.web.client.RestTemplate;
  
  import com.sample.restapi.model.SearchResponse;
  
  @SpringBootApplication
  public class ConsumerApplication {
  
      private static final Logger log = LoggerFactory.getLogger(ConsumerApplication.class);
  
      public static void main(String[] args) {
  
          RestTemplate restTemplate = new RestTemplate();
          SearchResponse searchResponse = restTemplate.getForObject("http://www.omdbapi.com?s=rush", SearchResponse.class);
  
          log.info(searchResponse.toString());
      }
  }
  </code></pre>
  
  <p>The console output is :</p>
  
  <pre><code>14:34:12.941 [main] INFO com.sample.restapi.ConsumerApplication - SearchResponse [search=null, totalResults=344, response=null]
  </code></pre>