spring-cloud - 带有 Spring Boot 2.3.0 的 Hoxton.SR6 导致奇怪的内容类型问题
问题描述
当我将我的 Spring Boot 2.3.0.RELEASE 应用程序从 Hoxton.SR4 更新到 Hoxton.SR6(唯一的变化)时,我开始面临来自各种端点的 Content Type 的奇怪问题。
例如,对于 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 的默认内容类型吗?
解决方案
推荐阅读
- reactjs - How to render a random trajectory animation infinitely, on some interval?
- python - ForeignKey filtering in django models
- delphi - How to disable high dpi support on Windows 7?
- php - How save value to database with foreign key
- laravel-5 - laravel authantication error with google API
- angular - 当用户在 Ionic 中的选择框中选择值时如何启用按钮
- python - 用于文本生成目的的 Keras LSTM 模型
- python - 如何将函数应用于在熊猫中以 at-sign 命名的索引?
- python-3.x - 获取 Twitter 用户时间线
- php - xampp中具有多个端口的多个站点