title: How to receive parameters in GET request from Angular Application
body: <p>I am tried to implement search filter using Querydsl. my search filter functionality is working fine.But I tested this by giving hard coded values in controller.</p>
  
  <p>Now I want to take that search parameter from Angular application. In get request how to receive this parameters from angular<code>sClientAcctId, sAcctDesc,sInvestigatorName,sClientDeptId</code></p>
  
  <p>Can any one please suggest me how to do that?</p>
  
  <p><strong>AccountController.java</strong></p>
  
  <pre><code>@GetMapping("/findAccountData")
  public ResponseEntity&lt;List&lt;Tuple&gt;&gt; populateGridViews(String sClientAcctId, String sAcctDesc,String sInvestigatorName,String sClientDeptId) throws Exception {                  
  
      return  ResponseEntity.ok(accService.populateGridViews(sClientAcctId, sAcctDesc,sInvestigatorName,sClientDeptId));
  </code></pre>
  
  <p>}</p>
  
  <p>I tried like this using <code>@PathVariable</code> but here I need to pass all parameters then only request is matching other wise I am getting 404</p>
  
  <p>My functionality is that If I didn't pass any parameters then I want all data, if I pass only one parameters then search according to that parameter value like that</p>
  
  <pre><code> @GetMapping("/findAccountData/{clientAcctId}/{acctDesc}/{investigatorName}/{clientDeptId}")
      public ResponseEntity&lt;List&lt;Tuple&gt;&gt;  populateGridViews(
     @PathVariable("clientAcctId") String sClientAcctId,
     @PathVariable("acctDesc") String sAcctDesc,
     @PathVariable("investigatorName") String sInvestigatorName ,
     @PathVariable("clientDeptId") String sClientDeptId) throws Exception { 
  </code></pre>