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
    The name of the cookie.
  • Element Details

    • value

      String value
      The name of the cookie.
      Default:
      ""