take look following ajax call and spring controller code, note, the "depositDate" field is date type, when the call is executed, the server side return the "Bad Request" errors. But if i set this field as null, it works, so i conclude i may not handle the date type well. who can helps? thanks.
So whatever mechanism you are using to convert depositDate to util date is probably where the issue is. e.g if you change that property to String does the submit work?
P.S If you have control of both server and client side then it's better to pass timestamps for dates and times because they are more portable as the client and server don't need to know about each other's date presentation format.
I think the string should works, because other fields are string, they work well. otherwise, i could not change the type to timestamps, the Date type is mandatory,thanks.
By passing timestamps I mean passing the long value of the timestamp. To correctly pass the data as a string all the time you have to use the same format on the client that you are using on the server.