spring mvc 同时支持get和post请求
来源:互联网 发布:键盘按键记录软件 编辑:程序博客网 时间:2024/04/30 07:00
@RequestMapping(value = "/api/component/imgconf/getimgconf",method = {RequestMethod.POST, RequestMethod.GET})@ResponseBodypublic Object getImgConf(HttpServletRequest request,@RequestParam(value = "downImageConfigRequest", required = true) String json){//此处省略很多代码}
这样终端发起请求的时候可以用post也可以用get。get的可以这样请求/api/component/imgconf/getimgconf.do?json="参数值"
0 0
- spring mvc 同时支持get和post请求
- webapi同时支持get和post请求
- spring mvc 响应处理post请求和get请求 测试
- Spring mvc Controller 处理安卓post和get请求
- Spring MVC POST请求转到GET
- Post请求和Spring MVC
- Spring Mvc将Get和Post请求转为Delete和Put请求
- Spring MVC Tomcat下GET请求和POST请求乱码的解决
- Spring mvc (三) [继承SimpleFormController配合formbean区别get和post请求]
- Spring mvc 针对get 和 post 请求参数的不同接收方式
- web端get和post请求支持跨域请求
- 初学 spring mvc 2(注解+get,post请求+重定向)
- spring MVC 中AJAX 请求 get 与 post
- GET和POST请求
- Get和Post请求
- post和get请求
- Get和Post请求
- post和get请求
- SlidingMenu-master中的example怎样导入eclipse运行
- struts2当前Action执行成功后跳转到另一个Action
- java5 多线程编程
- JavaScript做的一个随机点名程序
- SQL Server Profiler的原理与相关概念
- spring mvc 同时支持get和post请求
- PHP中实现字符串去除某些特定字符并重新拼接的简易方法
- jackson的使用总结 jason对象xml list之间相互转换
- LNMP(linux+nginx+mysql+php)服务器环境配置
- 好的用户界面-界面设计的一些技巧
- Ant学习
- 机房收费系统用例图
- output_buffering详细介绍
- Android 一键清理、内存清理功能实现