Spring HttpMessageNotWritableException

异常信息

[org.springframework.http.converter.HttpMessageNotWritableException: No converter for [class com.*.*.*.Call] with preset Content-Type 'null']

原因 springboot 返回 response 时,返回对象中 Call 中没有getter setter 方法。

解决方案

解决办法就很简单了,给所有的属性加上 get/set 方法即可解决问题!