Annotation Type Cookie


@Target({PARAMETER,FIELD})
@Retention(RUNTIME)
public @interface Cookie
A parameter that is a cookie value.

We can put this on a method parameter or a @Form bean property.

  • Optional Element Summary

    Optional Elements
    Modifier and Type Optional Element Description
    String value
    The name of the cookie.
  • Element Details

    • value

      The name of the cookie.
      Default:
      ""