title: get request variable return undefined in spring controller
body: <p>I have a get request in angular that takes a string param</p>
  
  <pre><code>method: 'GET',
        url: '/urle?data='+$scope.data,
        headers: {'Content-Type': 'application/x-www-form-urlencoded'},
  </code></pre>
  
  <p>consuming tha above endpoint in postman returns useful data but in springboot controller, the data variable echoes undefined</p>
  
  <pre><code>@RequestMapping(value = {"/urle"}, method = RequestMethod.GET, headers = "Accept=application/json")  //
      @ResponseBody
      public ResponseData getNData @RequestParam(value="data") String data, HttpServletRequest request) {
          System.out.println("@... inside controller");
  
          System.out.println("here is data " + String.valueOf(data)); //prints undefined
          if(av == null) {
              return ResponseData.successData("no data available 2");
          }
  </code></pre>
  
  <p>everything is working fine in postman but why is my spring controller not returning the data of the get parameter rather than undefined</p>