Annotation Type Header


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

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

    By default header names are Init caps snake case. For example:

    {@code
    
      // Last-Modified
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String value
      The name of the header.
    • Element Detail

      • value

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