spring-framework / org.springframework.web.bind.annotation / ModelAttribute / name

name

@AliasFor("value") val name: String

The name of the model attribute to bind to.

The default model attribute name is inferred from the declared attribute type (i.e. the method parameter type or method return type), based on the non-qualified class name: e.g. "orderAddress" for class "mypackage.OrderAddress", or "orderAddressList" for "List<mypackage.OrderAddress>".

Since
4.3