Annotation Interface ModelAttribute


@Retention(RUNTIME) @Target(PARAMETER) public @interface ModelAttribute
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Allows data binding to be disabled directly on an @ModelAttribute method parameter or on the attribute returned from an @ModelAttribute method, both of which would prevent data binding for that attribute.
     
  • Element Details

    • value

      String value
      Default:
      ""
    • binding

      boolean binding
      Allows data binding to be disabled directly on an @ModelAttribute method parameter or on the attribute returned from an @ModelAttribute method, both of which would prevent data binding for that attribute.

      By default this is set to true in which case data binding applies. Set this to false to disable data binding.

      Default:
      true