Make ContentType header purely optional. Spring boot returns HttpMediaTypeNotSupportedException if not passed

后端 未结 0 1962
野性不改
野性不改 2020-12-24 14:46

I want my application to work even when ContentType header is not passed. The request body in my case is always a JSON. But the below code always throws an exception

相关标签:
回答
  • 消灭零回复
提交回复
热议问题