Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/12.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/20.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
Springboot升级导致缺少授权类型错误_Spring_Spring Boot_Spring Security_Spring Security Oauth2 - Fatal编程技术网

Springboot升级导致缺少授权类型错误

Springboot升级导致缺少授权类型错误,spring,spring-boot,spring-security,spring-security-oauth2,Spring,Spring Boot,Spring Security,Spring Security Oauth2,所以我只是在一个小项目中升级了SpringBoot版本,现在身份验证被搞砸了。 当我尝试获取身份验证令牌时,我收到一个错误: { "error": "invalid_request", "error_description": "Missing grant type" } 我和邮递员一起玩。如果我将grant_type/pw/username从body移动到查询参数,它就可以正常工作。但我们不能改变

所以我只是在一个小项目中升级了SpringBoot版本,现在身份验证被搞砸了。 当我尝试获取身份验证令牌时,我收到一个错误:

{
    "error": "invalid_request",
    "error_description": "Missing grant type"
}
我和邮递员一起玩。如果我将grant_type/pw/username从body移动到查询参数,它就可以正常工作。但我们不能改变这一点。那么有没有办法找出是哪种依赖关系的改变导致了这种情况呢?
我检查了升级文档(和),但找不到任何与此相关的内容。

所以问题在于我们的代码

有一个限制限制请求主体,使其只能读取一次

我们在一个扩展了
HttpServletRequestWrapper
的包装器类中有一个解决方法。但是如果您升级spring引导版本,您将升级嵌入式tomcat

事实证明,我们必须更新包装器类。
它适用于
2.3.3
版本。也许在功能中,我们必须再次维护它