Used on the method, the method is executed before each method of the controller class is executed, the model is manipulated (that is, the model that directly affects the incoming method) is used on the input parameter, you can specify the key of the input parameter (if not specified, the default class name is the first letter lower case) If a key of the same name is already present in the model, the request parameter will be assigned to the Vlue (invalid for the base data type) of the key, and it is important to note that if the key is valu when the model is placed into the key-value in a @ModelAttribute method e-type first letter lowercase, then all the type of the entry will default to the model, so, in the @modelattribute method into mode in the key-value pair, it is best not to name the key as the value type first letter lowercase
"Springmvc" About Modelandattribue