Start here. This is the direct spoken answer to practice first.
Overview
A handler mapping matches the complete request condition, not only the visible URL path.
Spring MVC combines class-level and method-level request mappings, then matches conditions such as path, HTTP method, query parameters, headers, consumed media types, and produced media types. @GetMapping, @PostMapping, and the other shortcuts make the HTTP method explicit. If more than one mapping matches, Spring compares specificity; incompatible duplicates can fail during startup or produce an ambiguous mapping error. A path match alone does not guarantee the method will be selected.