spring filter httpmethd

  1. < filter >     
  2.   < filter-name > HiddenHttpMethodFilter </ filter-name >   
  3.     < filter-class > org.springframework.web.filter.HiddenHttpMethodFilter </ filter-class >   
  4. </ filter >
  • 在web.xml中配置以上,就可以拦截delete和put请求
  • <!-- 浏览器不支持put,delete等method,由该filter将/blog?_method=delete转换为标准的http delete方法 -->

你可能感兴趣的:(spring,xml,Web,浏览器,Blog)