what if I use this annotation in the variable parameter of a method, and then the variable reports an error when it is null?
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
}
Previous: Spring Controller receive parameter form