title: How to send a getForObject request with parameters Spring MVC
body: <p>I have a method on the Server side which gives me information about an specific name registered in my database. I'm accessing it from my Android application. </p>
  
  <p>The request to Server is done normally. What I'm trying to do is to pass parameter to the server depending on the name I want to get. </p>
  
  <p>Here's my Server side method:</p>
  
  <pre><code>@RequestMapping("/android/played")
  public ModelAndView getName(String name) {
      System.out.println("Requested name: " + name);
  
      ........
  }
  </code></pre>
  
  <p>Here's the Android request to it:</p>
  
  <pre><code>private Name getName() {
      RestTemplate restTemplate = new RestTemplate();
      // Add the String message converter
      restTemplate.getMessageConverters().add(
          new MappingJacksonHttpMessageConverter());
      restTemplate.setRequestFactory(
          new HttpComponentsClientHttpRequestFactory());
  
      String url = BASE_URL + "/android/played.json";
      String nome = "Testing";
  
      Map&lt;String, String&gt; params = new HashMap&lt;String, String&gt;();
      params.put("name", nome);
  
      return restTemplate.getForObject(url, Name.class, params);
  }
  </code></pre>
  
  <p>In the server side, I'm only getting:</p>
  
  <pre><code>Requested name: null
  </code></pre>
  
  <p>Is it possible to send parameters to my Server like this?</p>