title: No suitable HttpMessageConverter found for response type and content type [application/json;charset=UTF-8] exception occurs
body: <p>Im trying to hit Spring REST endpoint in my other module of the application. So im trying to use the REST Template to get a list of users as below :</p>
  
  <p>The API request using REST Template :</p>
  
  <pre><code>public List&lt;LeadUser&gt; getUsersBySignUpType(String type, String id) {
  
      String adminApiUrl = adminApiBaseUrl+"/crm/v1/users/?type="+type+"&amp;id="+id;
      RestTemplate restTemplate = new RestTemplate();
      HttpHeaders headers = new HttpHeaders();
      headers.setContentType(org.springframework.http.MediaType.APPLICATION_JSON);
      HttpEntity entity = new HttpEntity(headers);
      ResponseEntity&lt;LeadUserList&gt; response = restTemplate.exchange(
              adminApiUrl, HttpMethod.GET, entity, LeadUserList.class);
      return response.getBody().getUsersList();
  }
  </code></pre>
  
  <p>LeadUserList class : </p>
  
  <pre><code>public class LeadUserList {
  
      private List&lt;LeadUser&gt; usersList;
  
      public List&lt;LeadUser&gt; getUsersList() {
          return usersList;
      }
  }
  </code></pre>
  
  <p>LeadUser model class : </p>
  
  <pre><code>public class LeadUser {
  
      @JsonProperty("id")
      private String id;
      @JsonProperty("email")
      private String email;
      @JsonProperty("name")
      private String name;
      @JsonProperty("businessName")
      private String businessName;
      @JsonProperty("phone")
      private String phone;
      @JsonProperty("address")
      private String address;
      @JsonProperty("createdTime")
      @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
      private Date createdTime;
      @JsonProperty("updatedTime")
      @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
      private Date updatedTime;
      @JsonProperty("bookletSignups")
      private BookletSignUp bookletSignUp;
      @JsonProperty("eventSignups")
      private EventSignUp eventSignUp;
      @JsonProperty("infoSignups")
      private InfoSignUp infoSignUp;
      @JsonProperty("webinarSignups")
      private WebinarSignUp webinarSignUp;
  
      public LeadUser() {
      }
  }
  </code></pre>
  
  <p>The API endpoint controller class :</p>
  
  <pre><code>@Controller
  @Component
  @RequestMapping(path = "/crm/v1")
  public class UserController {
  
      @Autowired
      UserService userService;
  
      @RequestMapping(value = "/users", method = GET,produces = "application/json")
      @ResponseBody
      public ResponseEntity&lt;List&lt;User&gt;&gt; getPartnersByDate(@RequestParam("type") String type, 
      @RequestParam("id") String id) throws ParseException {
  
          List&lt;User&gt; usersList = userService.getUsersByType(type);
          return new ResponseEntity&lt;List&lt;User&gt;&gt;(usersList, HttpStatus.OK);
      }
  }
  </code></pre>
  
  <p>Although the return type is JSON from the API endpoint im getting the above exception. What have I done wrong here? </p>
  
  <p>The exception :</p>
  
  <pre><code>Could not extract response: no suitable HttpMessageConverter found for response type [class admin.client.domain.LeadUserList] and content type [application/json]
  </code></pre>