DefaultSerializer requires a Serializable payload but received an object of type [com.shiyaxin.bean

it2022-05-05  119

DefaultSerializer requires a Serializable payload but received an object of type [com.shiyaxin.bean.Employee] at org.springframework.core.serializer.DefaultSerializer.serialize 翻译: 默认的序列化需要一个可序列化的有效负载,但是接收了一个类型为[com.shiyaxin.bean.Employee]的对象。 在org.springframework.core.serializer.DefaultSerializer.serialize 错误解决办法至一:在实体类上implements Serializable(继承序列化)public class Employee implements Serializable {


最新回复(0)