Resolution: The problem of data submitted via ajax, PUT can not get in the way
the reason
- PUT data submitted directly, not packaged into a Tomcat default map (by default only the POST process, so the use form when the form is submitted _method parameter modification method is not a problem),
that is to say request.parameter () not pass over the parameters.
Solution
- By providing a filter tomcat FormContentFilter
- Arranged in web.xml FormContentFilter filter, url-pattern of / * (HttpPutFormContentFilter is deprecate the previously used)
<filter>
<filter-name>formContentFilter</filter-name>
<filter-class>org.springframework.web.filter.FormContentFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>formContentFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>