title: Can someone please clear the difference between @GetMapping and @PostMapping in spring also can we use these annotations at one another's place?
body: <p>for example to save the details of employee:</p>
  
  <pre><code>@PostMapping("/url")
  public void addEmployee(EmployeeBean emp){
  ....
  }
  
  @GetMapping("/url")
  public void addEmployee(EmployeeBean emp){
  ....
  }
  </code></pre>
  
  <p>Can I do this?</p>