@PostMapping maps a Spring MVC controller method to HTTP POST requests at a specified path. It makes the HTTP method explicit, unlike @RequestMapping without a method, which matches all HTTP methods. section 8.2
Add a product
Use @PostMapping("/products") on an action that receives a product’s name and price, adds it to the product list, and returns the updated products page. An HTML form with action="/products" and method="post" sends the request. section 8.2

