The AJAX post parameter background gets no query parameters.
On the internet to find a variety of methods, including setting the Content-type, but also the JSON into a JSON format string, the problem still exists, but the post to get and can be obtained, baffled solution.
Later see TOMCAT7 configuration, the maxpostsize= "0" configuration removed when the problem disappears.
According to previous experience, maxpostsize= "0" is not limited to the size of the post data, how to limit the size of the data?
Because the project has to post a data to the background to save (size may be greater than 2M), so this size can not be limited.
The maxpostsize change was later found in the official Tomcat document.
tomcat6.0 's documentation says maxpostsize unrestricted setting is less than or equal to 0
Exact words: The maximum size in bytes of the POST which would be a handled by the container FORM URL parameter parsing. The feature can disabled by setting this attribute to a value less than or equal to 0. If not specified, the This attribute are set to 2097152 (2 megabytes).
tomcat7.0 's documentation says Maxpostsize Unlimited settings are less than 0
Exact words: The maximum size in bytes of the POST which would be a handled by the container FORM URL parameter parsing. The limit can be disabled by setting this attribute to a value less than zero. If not specified, the This attribute are set to 2097152 (2 megabytes). Note that the FailedRequestFilter
can is used to reject requests it exceed this limit.
So set the Maxpostsize to "-1" and the problem is solved.
Ajax Post parameters background not getting the problem