标签:com security add ide method 图片 引号 png .net
<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 OAuthSecurityConfig extends AuthorizationServerConfigurerAdapter {
...
@Override
public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception {
...
endpoints.allowedTokenEndpointRequestMethods(HttpMethod.GET, HttpMethod.POST);// add get method
...
endpoints.tokenServices(tokenServices);
}
...
}
oauth2(spring security)报错method_not_allowed(Request method 'GET' not supported)解决方法
标签:com security add ide method 图片 引号 png .net
原文地址:https://www.cnblogs.com/ouyida3/p/9031328.html