SPRINGMVC-Bad Request solution

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.