web app 接收put的配置方式

博观而约取,厚积而薄发。这篇文章主要讲述web app 接收put的配置方式相关的知识,希望能为你提供帮助。
HiddenHttpMethodFilter/HttpPutFormContentFilter


HiddenHttpMethodFilter:HiddenHttpMethodFilter必须作用于dispatcher前

< filter>             < filter-name> HiddenHttpMethodFilter< /filter-name>             < filter-class> org.springframework.web.filter.HiddenHttpMethodFilter< /filter-class>         < /filter>         < filter-mapping>             < filter-name> HiddenHttpMethodFilter< /filter-name>             < servlet-name> spring< /servlet-name>         < /filter-mapping>     < servlet>     < servlet-name> spring< /servlet-name>     < servlet-class> org.springframework.web.servlet.DispatcherServlet< /servlet-class>     < init-param>     < param-name> contextConfigLocation< /param-name>     < param-value> classpath:dispatcher.xml< /param-value>     < /init-param>     < /servlet>     < servlet-mapping>     < servlet-name> spring< /servlet-name>     < url-pattern> *.html< /url-pattern>     < /servlet-mapping>

< form  action=" ..."   method=" post" >                     < input  type=" hidden"   name=" _method"   value=https://www.songbingjia.com/android/" put" /> ...... < /form>



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> /*< /url-pattern>     < /filter-mapping>

< form  action=" "   method=" put"   enctype=" application/x-www-form-urlencoded" >     ......    < /form>

【web app 接收put的配置方式】


    推荐阅读