Model Attributes

Initialize the DTO

@ModelAttribute(ExampleEntityViewConstants.BEAN_FORM)
public final ExampleEntityForm getEntityForm() {
    return new DefaultExampleEntityForm();
}

Mapping a Form into the DTO

@PostMapping
public final String saveEntity(@ModelAttribute("formBean") final ExampleEntityForm form)

Last updated