title: How to get PathVariable (String) in a Controller method
body: <pre><code>@RequestMapping(value = "/user/search/{email}")
      public String auditUseremail(@PathVariable("email") String email,Map&lt;String, Object&gt; map) {
  
          System.out.println(email);
  }
  </code></pre>
  
  <p>this is my conroller class function, which is called when the action is <code>http://localhost:8080/LACASServer/secure/user/search/user@cohaesus.co.uk</code></p>
  
  <p>as u can look, email is in URL, but when i print it in the above method, i get it  <code>user@cohaesus.co</code>, can anybody tell me, what can be the issue and how to resolve it.</p>