Hoxton.SR6 with Spring Boot 2.3.0 cause weird content type issue

南笙酒味 提交于 2020-08-05 10:01:36

问题


When i updated my Spring Boot 2.3.0.RELEASE Application from Hoxton.SR4 to Hoxton.SR6 (the only change), i started facing weird issues with Content Type from various endpoints.

For example, with Hoxton.SR4, any unauthorized endpoint was returning this error:

{
   "error": "unauthorized",
   "error_description": "Full authentication is required to access this resource"
}

Same authorization server error in Hoxton.SR6 comes in XML

<UnauthorizedException>
     <error>unauthorized</error>
     <error_description>Full authentication is required to access this resource</error_description>
</UnauthorizedException>

many other endpoints are returning content in XML rather than application/json.

Can someone help with fixing the default content type for Spring Cloud Hoxton.SR6?

来源:https://stackoverflow.com/questions/62929410/hoxton-sr6-with-spring-boot-2-3-0-cause-weird-content-type-issue

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!