jackson反序列化失败异常总结

2020-06-19 17:28:44 浏览数 (1)

  1. 存在冲突的访问器方法,Conflicting setter definitions for property “myproperty” 例如:
代码语言:javascript复制
class TypeA extends TypeB implements InfC {}
class TypeB {
	String myproperty;
	String getMyproperty(){return myproperty};
	void setMyproperty(String value){myproperty = value};
}
interface InfC {
	String getMyproperty();
	void setMyproperty(String value);	
}

0 人点赞