Some fields in user and author are the same. When submitted from jsp, why can't it be automatically filled in to author?
Some fields are the same. Assign the value yourself in Controller 里面 new 一个 author
Controller
new
author
The name attribute of the form submitted by jsp is available to both user and author, and both user and author can receive it. . .
Data binding only supports binding to one object. You can package user and author into one object for transmission.
Some fields are the same. Assign the value yourself in
Controller
里面new
一个author
The name attribute of the form submitted by jsp is available to both user and author, and both user and author can receive it. . .
Data binding only supports binding to one object. You can package user and author into one object for transmission.