java对象转string,使用ToStringBuilder

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

String x = ToStringBuilder.reflectionToString(hti, ToStringStyle.JSON_STYLE)

你可能感兴趣的:(java对象转string,使用ToStringBuilder)