当我将 Spring Boot 2.3.0.RELEASE 应用程序从 Hoxton.SR4 更新到 Hoxton.SR6(唯一的更改)时,我开始面临来自各个端点的内容类型的奇怪问题。
例如,对于 Hoxton.SR4,任何未经授权的端点都会返回以下错误:
{
"error": "unauthorized",
"error_description": "Full authentication is required to access this resource"
}
Hoxton.SR6 中的相同授权服务器错误出现在 XML 中
<UnauthorizedException>
<error>unauthorized</error>
<error_description>Full authentication is required to access this resource</error_description>
</UnauthorizedException>
许多其他端点返回 XML 格式的内容,而不是 application/json。
有人可以帮助修复 Spring Cloud Hoxton.SR6 的默认内容类型吗?
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)