spring-framework / org.springframework.web.method.annotation / ModelFactory / getNameForParameter

getNameForParameter

static fun getNameForParameter(parameter: MethodParameter): String

Derive the model attribute name for the given method parameter based on a @ModelAttribute parameter annotation (if present) or falling back on parameter type based conventions.

Parameters

parameter - a descriptor for the method parameter

Return
the derived name

See Also
Conventions#getVariableNameForParameter(MethodParameter)