Spring RESTful Routing & Static Files
Spring RequestMapping:
-
@RequestMapping — by Path
@RequestMapping(value = "/ex/foos", method = RequestMethod.GET) -
@RequestMapping — the HTTP Method The HTTP method parameter has no default.
@RequestMapping(value = "/ex/foos", method = POST)
- RequestMapping and HTTP Headers
-
@RequestMapping With the headers Attribute
@RequestMapping(value = "/ex/foos", headers = "key=val", method = GET) -
@RequestMapping Consumes and Produces Mapping media types produced by a controller method is worth special attention.
- RequestMapping With Path Variables
- Single @PathVariable
- Multiple @PathVariable
- PathVariable With Regex
Accessing Data with JPA

