springframework Request method 'GET' not supported
来源:互联网 发布:知乎怎么用 编辑:程序博客网 时间:2024/06/08 09:11
javaweb开发的时候碰见这个错误,写下来,记录一下
org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver.handleHttpRequestMethodNotSupported(198) | Request method ‘GET’ not supported
这是js的代码,请求的时候默认的是get请求
$("#outBtn").click(function (){ var url=sysurl+"pay/outExcel"; window.open(url);});
而后端的代码是这样
@ResponseBody @RequestMapping(value ="/outExcel",method = RequestMethod.**POST**)//注意这里给成get请求就好了 public void outExcell(HttpServletRequest request,HttpServletResponse response) throws Exception{
阅读全文
0 0
- springframework Request method 'GET' not supported
- Request method 'GET' not supported
- Request method 'GET' not supported
- 记另类Request method 'GET' not supported
- 解决Request method "GET" not supported
- 解决Request method 'GET' not supported问题
- org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'PUT' not supported
- springboot报错:Request method 'GET' not supported
- request method 'post' not supported
- Request method 'POST' not supported
- Spring MVC出现POST 400 Bad Request &405 Request method 'GET' not supported
- Spring MVC-Request method 'POST' not supported:
- WARN : Request method 'DELETE' not supported
- request method 'post' not supported问题解决
- jsp spring mvc 上传时HTTP Status 405 - Request method 'GET' not supported是什么原因
- JQuery ajax提交表单时<button>按钮引起的 Request method 'GET' not supported错误!
- spring MVC form表单提交用RequestMethod.POST报错 : Request method 'GET' not supported
- springmvc解决 405 request method post not supported(Request method 'POST' not supported)
- ZooKeeper 学习 (一) ZooKeeper的基本概念
- Codeforces 832 C Strange Radiation
- 古文觀止卷七_原道_韓愈
- 注意程序的[error]log
- 各类MQ比较
- springframework Request method 'GET' not supported
- hibernate与spring整合:配置事务之后并不会滚的问题
- ubutu搭建pptp
- KMP字符串模式匹配算法实现
- 【面试题】判断一棵二叉树是否是完全二叉树
- A
- jvm--gc垃圾收集(1)
- Linux的各文件目录作用
- VMware vSphere Web Services SDK编程指南(二)-Java 开发设置