spring-framework / org.springframework.web.servlet.view.xml / MarshallingView / setModelKey

setModelKey

open fun setModelKey(modelKey: String): Unit

Set the name of the model key that represents the object to be marshalled. If not specified, the model map will be searched for a supported value type.

See Also
Marshaller#supports(Class)