Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @RestController
- @RequestMapping("<mapping-path>")
- public class MyController {
- ...
- @GetMapping("<path-to-the-endpoint>")
- public MyObject getMyObject(@RequestHeader("headerName") String headerName) {
- //do something with the header here
- }
- ...
- }
Add Comment
Please, Sign In to add comment