Skip to main content

Mapping URL Paths

Learn Mapping URL Paths (Controllers, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes URL path mapping sets which request paths a handler serves: @GetMapping("/users") or @RequestMapping(path = "/users") . Path variables : placeholders such as /users/{id} capture part of the URL, read with @PathVariable . Patterns : * matches one segment, ** matches many segments, and ? one character.

More lessons in Controllers