HTTP Cookies
Learn HTTP Cookies (Cookies, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes HTTP cookie is a small name-value pair that the server asks the browser to store and send back on later requests. Set with the Set-Cookie response header; the browser returns it in the Cookie request header. Read in Spring with @CookieValue("theme") String theme ; write with jakarta.servlet.http.Cookie or ResponseCookie .