@ ModelAttribute value problem

what if I use this annotation in the variable parameter of a method, and then the variable reports an error when it is null?


@ ModelAttribute what object is marked?
may initialize
@ ModelAttribute
public YourAttrObj initObj () {
/ / the initialization method
}

by using the following methods
Menu