Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/311.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Spring oauth2/令牌POST方法未映射_Java_Spring_Oauth_Spring Security_Spring Security Oauth2 - Fatal编程技术网

Java Spring oauth2/令牌POST方法未映射

Java Spring oauth2/令牌POST方法未映射,java,spring,oauth,spring-security,spring-security-oauth2,Java,Spring,Oauth,Spring Security,Spring Security Oauth2,我已经使用org.springframework.security.oauth:spring-security-oauth2:2.0.5.RELEASE-lib设置了oauth服务器。 而且我不能使用密码授予来使用资源所有者凭据对客户端进行身份验证。 我使用RFC6749-4.3。资源所有者密码凭据授予-方案 发送类似请求: 我明白了 此端点未映射。 这是spring oauth2发行版吗?为什么要调用/token?我认为应该是/oauth/token…为什么不回答这个问题(因为它是正确的)?

我已经使用org.springframework.security.oauth:spring-security-oauth2:2.0.5.RELEASE-lib设置了oauth服务器。 而且我不能使用密码授予来使用资源所有者凭据对客户端进行身份验证。 我使用RFC6749-4.3。资源所有者密码凭据授予-方案

发送类似请求: 我明白了 此端点未映射。
这是spring oauth2发行版吗?

为什么要调用/token?我认为应该是/oauth/token…为什么不回答这个问题(因为它是正确的)?
 POST /token HTTP/1.1
 Host: server.example.com
 Authorization: Basic czZCaGRSa3F0MzpnWDFmQmF0M2JW
 Content-Type: application/x-www-form-urlencoded
 grant_type=password&username=johndoe&password=A3ddj3w
 HTTP/1.1 405 Method Not Allowed