title: Rest Api in Spring with parameter as a email id giving HTTP status 406
body: <pre><code> @RequestMapping(value = "/analyst/getcompany/{user}", method = RequestMethod.GET, produces = "application/json")
          public String getEmail(@PathVariable String user) {
      //logic
      }
  </code></pre>
  
  <p>when requesting this URI with:</p>
  
  <pre><code>"analyst/getcompany/Abc@gmail.com"
  </code></pre>
  
  <p>It is giving HTTP Status 406.</p>
  
  <p>I encode the @ with %40 but {.} in the email id is creating a problem. how to handle this?</p>