1号公司
LOGGER.info(JSON.toJSONString(obeject));
2号公司
LOGGER.info(obeject); 覆写tostring方法还用sb来拼接
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("TaskData [code=");
builder.append(code);
builder.append(", data=");
builder.append(data);
builder.append(", message=");
builder.append(message);
builder.append("]");
return builder.toString();
}