RequestMethod
来源:互联网 发布:防火墙怎么关闭端口 编辑:程序博客网 时间:2024/05/01 21:57
spring3.0添加了一个过滤器,可以将这些请求转换为标准的http方法,使得支持GET、POST、PUT与DELETE请求
配置:
<filter>
<filter-name>HiddenHttpMethodFilter</filter-name>
<filter-class>org.springframework.web.filter.HiddenHttpMethodFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>HiddenHttpMethodFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
/** 进入新增 */
@RequestMapping(value="/new")
/** 显示 */
@RequestMapping(value="/{id}")
/** 编辑 */
@RequestMapping(value="/{id}/edit")
/** 保存新增 */
@RequestMapping(method=RequestMethod.POST)
/** 保存更新 */
@RequestMapping(value="/{id}",method=RequestMethod.PUT)
/** 删除 */
@RequestMapping(value="/{id}",method=RequestMethod.DELETE)
/** 批量删除 */
@RequestMapping(method=RequestMethod.DELETE)
- RequestMethod
- RequestMethod
- 力所能及之springmvc RequestMethod
- SpringMVC之RequestMethod
- RequestMethod.DELETE RequestMethod.PUT 这些类型是什么时候使用。
- RequestMethod -POST 、GET 、PUT 、DELETE
- requestmethod.get和post的区别
- Java常见HTTP请求方法RequestMethod
- SpringMvc中,RequestMethod可以同时支持POST GET访问么?
- SpringMvc中,RequestMethod可以同时支持POST GET访问么?(二)
- springmvc中RequestMethod.GET方式不适用于json数据格式的参数接收
- spring MVC form表单提交用RequestMethod.POST报错 : Request method 'GET' not supported
- SpringMvc返回Json格式的数据 和@RequestMapping(value="/{username}",method=RequestMethod.GET,params="json")
- MyBatis
- 15第五周项目一——体验常成员函数
- Android---Matrix类的使用
- ssh连接linux服务器只显示-bash-4.1#
- 编译Lua
- RequestMethod
- MFC的DLL中调用函数指针与主程序交互
- C++ 头文件中不能呢个定义变量
- ACM_1002_最大值和最小值
- android常见面试题与我自己的回答
- Xcode 6.2 插件失效的临时解决方案
- iOS 文件操作
- VIM使用技巧
- EL表达式