title: how to solve error = "page not found 404 during Spring Application"
body: <p>I am trying to make a postRequest and trying to get the object from request  but the code is not getting executed. It is not getting inside the method.</p>
  
  <p>I have already tried adding <code>@componentScan</code> in config files and <code>@EntityScan</code></p>
  
  <pre class="lang-java prettyprint-override"><code>@RestController
  @RequestMapping("/api/verify")
  @CrossOrigin(origins = "*")
  public class Verify {
  
      @PostMapping(path = "/members", consumes = "application/json")
      public String verify(@RequestBody DeviceDetails device) {
          try {
              System.out.println(device.getIpAddress());
              //return "1";
              return "hi";
          }
          catch (Exception e) {
              System.out.println(e);
              return "hi from err";
          }
     }
  </code></pre>
  
  <p>I expect that it should print hi to console and it should print IP Address</p>
  
  <p><img src="https://i.stack.imgur.com/69807.png" alt="Here is the postman response"></p>