1.tomcat默认处理请求的方式是post,将参数放在一个map中,如果直接发送put请求,获取不到参数,可以用SpringMvc的HttpPutFormContentFilter
<filter> <filter-name>HttpPutFormContentFilter</filter-name> <filter-class>org.springframework.web.filter.HttpPutFormContentFilter</filter-class> </filter> <filter-mapping> <filter-name>HttpPutFormContentFilter</filter-name> <url-pattern>*.action</url-pattern> </filter-mapping>