Spring MVC Cookie example
In this post we will see how to access and modify http cookies of a webpage in Spring MVC framework. Read Http Cookie in Spring MVC Spring 3 MVC framework provides a very useful annotation @CookieValue to access data set within any http cookie. This annotation can be leverage to fetch the cookie value without getting into hassle of fetching cookies from http request and iterating through the list. @CookieValue annotation can be used within Controller argument. It automatically bind the cookie value with method argument. import org.springframework.web.bind.annotation.CookieValue; import org