Today, when the project was suddenly reported a bad request error, the backstage did not have any problems.
First I looked at the log log does not receive any parameters, you can determine that the request is not sent out, so it should be the foreground data submission problem.
Then I saw some tips from some netizens:
1. The Submission form data type does not match the model
2, the method parameter order is incorrect
The properties of 3.javabean do not match the data types in your form submission
4 Object type inconsistent with model type
5 model type cannot be private and should be protected/public
I carefully looked at my JS file, suddenly found that there is a place to write the wrong, a status state value but wrote a Long value, so there is a third case.
So here also remind you, encountered errors when the first analysis and then search, then ask ~
I hope you have a lot of advice ~
This is one of the cases where a date mismatch results in a 400 error, which is relatively advanced, after all, the global setting. Click to open link
SPRINGMVC-Bad Request solution