Request method 'POST' not supported 发送post请求有问题
//给微信公众号发送模板信息,传递一个post请求,微信端也接受数据成功,但是后台会报一个Request method 'POST' not supported
用了wxjava框架和写都可以发送模板成功
但是都会报Request method 'POST' not supported 异常
用的是若依框架,springboot,但是 restTemplate 的get请求没问题,就只有POST报错
@GetMapping("/sendMessage")
public String sendMessage(ModelMap mmap)
{
ResponseEntity<String> apiResponse = restTemplate.postForEntity
(
url,
o,
String.class
);
return "";
}
用了wxjava框架和写都可以发送模板成功
但是都会报Request method 'POST' not supported 异常
用的是若依框架,springboot,但是 restTemplate 的get请求没问题,就只有POST报错
@GetMapping("/sendMessage")
public String sendMessage(ModelMap mmap)
{
ResponseEntity<String> apiResponse = restTemplate.postForEntity
(
url,
o,
String.class
);
return "";
}
...全文
相关推荐
Request Method Not Supported(处理方案).md
Request Method Not Supported(处理方案).md
Http-servlet请求源码
Http-servlet请求完整代码(client-service),以及servlet的“HTTP method GET is not supported by this URL”错误处理
Feign发送Get请求时,采用POJO对象传递参数的最终解决方案.docx
Feign发送Get请求时,采用POJO对象传递参数的最终解决方案.docx
各类Http请求状态(status)及其含义详细解析
主要介绍了各类Http请求状态(status)及其含义。需要的朋友可以过来参考下,希望对大家有所帮助
WEB请求的各种状态码对应
http请求的状态表!web开发人员必备!


Web 开发
