记一次JACKSON递归性质序列化错误
错误内容
"example":{"distinct":false,"forUpdate":false,"oredCriteria":[{"criteria":[{"condition":"order_no like","value":"202010091957930","andOr":"and","noValue":false,"singleValue":true,"betweenValue":false,"listValue":false},{"condition":"acct_name like","value":"新品测试","andOr":"and","noValue":false,"singleValue":true,"betweenValue":false,"listValue":false},{"condition":"state =","value":0,"andOr":"and","noValue":false,"singleValue":true,"betweenValue":false,"listValue":false},{"condition":"order_type =","value":"PurchaseOrder","andOr":"and","noValue":false,"singleValue":true,"betweenValue":false,"listValue":false},{"condition":"ROW_ID =","value":"256829215679185139","andOr":"and","noValue":false,"singleValue":true,"betweenValue":false,"listValue":false},{"condition":"CREATED_BY =","value":"210773580093325377","andOr":"and","noValue":false,"singleValue":true,"betweenValue":false,"listValue":false},{"condition":"LAST_UPD_BY =","value":"2514205957971","andOr":"and","noValue":false,"singleValue":true,"betweenValue":false,"listValue":false},{"condition":"CORP_ID =","value":"0","andOr":"and","noValue":false,"singleValue":true,"betweenValue":false,"listValue":false},{"condition":"ORG_ID =","value":"86608101767122944","andOr":"and","noValue":false,"singleValue":true,"betweenValue":false,"listValue":false},{"condition":"POSTN_ID =","value":"0","andOr":"and","noValue":false,"singleValue":true,"betweenValue":false,"listValue":false}],"andOr":"and","valid":true,"allCriteria":[{"condition":"order_no like","value":"202010091957930","andOr":"and","noValue":false,"singleValue":true,"betweenValue":false,"listValue":false},{"condition":"acct_name like","value":"新品测试","andOr":"and","noValue":false,"singleValue":true,"betweenValue":false,"listValue":false},{"condition":"state =","value":0,"andOr":"and","noValue":false,"singleValue":true,"betweenValue":false,"listValue":false},{"condition":"order_type =","value":"PurchaseOrder","andOr":"and","noValue":false,"singleValue":true,"betweenValue":false,"listValue":false},{"condition":"ROW_ID =","value":"256829215679185139","andOr":"and","noValue":false,"singleValue":true,"betweenValue":false,"listValue":false},{"condition":"CREATED_BY =","value":"210773580093325377","andOr":"and","noValue":false,"singleValue":true,"betweenValue":false,"listValue":false},{"condition":"LAST_UPD_BY =","value":"2514205957971","andOr":"and","noValue":false,"singleValue":true,"betweenValue":false,"listValue":false},{"condition":"CORP_ID =","value":"0","andOr":"and","noValue":false,"singleValue":true,"betweenValue":false,"listValue":false},{"condition":"ORG_ID =","value":"86608101767122944","andOr":"and","noValue":false,"singleValue":true,"betweenValue":false,"listValue":false},{"condition":"POSTN_ID =","value":"0","andOr":"and","noValue":false,"singleValue":true,"betweenValue":false,"listValue":false}]}],"entityClass":"com.hand.business.quanyounew.model.entity.SupplementOrder","propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":{"orderType":{"table":{"propertyMap":
这里DEBUG跟踪到的原因是restcontroller在filter进行invoke的时候选择了Jackson选择器,但原因并不是Jackson的问题。
因为我发现在对内置属性进行遍历的时候,调用的是其get方法,而我在业务内置基础对象baseEntity中写了一个方法
public Example getExample() {
return this.fieldsToExample(this.initFields());
}
这个方法是典型的get方法,对其扫描并装载返回JSON的MAP的时候,自然而然就扫描到了,所以将他当成了一个属性。