Question
When using the SSM framework for a project, the field error in object ‘xxx’ on field ‘xxx’: rejected value [[], [], []…] font> problem occurs.
resolvent
when the value passed from the front end is null, the value cannot be converted to the corresponding type, which will lead to loading
c
o
n
t
r
o
l
l
e
r
controller
The controller code reported an error before Font>
for example:
u
r
l
:
url :
URL: ${pagecontext. Request. Contextpath}/book/toupdatepage/ ${book. Getbookid()} font>
if the red part is null, the field error in object ‘xxx’ on field ‘xxx’: rejected value [[], [], []…] font> problem will appear.
Therefore, to solve this problem, first check whether the value of the passed parameter is null, and then check whether the parameter type of the passed parameter is correct.