I developed Spring Boot CRUD application. The database I have connected is PostgreSQL. @GetMapping is working properly and an empty array of objects can be retrieved by the GET request. But in @PostMapping, the POST request gives a 404 error.

I developed Spring Boot CRUD application. The database I have connected is PostgreSQL. @GetMapping is working properly and an empty array of objects can be retrieved by the GET request. But in @PostMapping, the POST request gives a 404 error.