Commit e9b29999 authored by huangcb's avatar huangcb

EResponse Override toString方法

parent 20725cd4
package com.esv.freight.app.common.response; package com.esv.freight.app.common.response;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.io.Serializable; import java.io.Serializable;
/** /**
...@@ -153,4 +156,9 @@ public class EResponse<T> implements Serializable { ...@@ -153,4 +156,9 @@ public class EResponse<T> implements Serializable {
public void setData(T data) { public void setData(T data) {
this.data = data; this.data = data;
} }
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment