最近做智慧城市项目,太恶心了。。。各种不会,个人负责权限验证中心服务,。。。唉,慢慢研究吧。。
报错信息
<MethodNotAllowed>
<error>method_not_allowed</error>
<error_description>Request method 'GET' not supported</error_description>
</MethodNotAllowed>
39是单引号
原因
默认只支持post
解决方法
-
下载安装postman工具(或其他post工具)
使用post调用
- 代码增加get的方法
@Configuration
public class OAuthSecurityConf

本文记录了在使用Spring Security实现OAuth2时遇到的'GET method not supported'错误,分析了该错误的原因——默认仅支持POST请求,并介绍了如何通过Postman工具进行POST调用以及代码中增加GET方法的解决方案。
订阅专栏 解锁全文
3585

被折叠的 条评论
为什么被折叠?



