Writing cookies using HttpServletResponse#addCookie and reading them either using HttpServletRequest#getCookies or using Spring annotation @CookieValue.
Annotations for @RequestMapping and HTTP method composed variants: @GetMapping, @PostMapping, @PutMapping, @DeleteMapping and @PatchMapping (Starting Spring 4.3).