toString()

普通javaBean高速重写toString()方法:

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

public String toString() {
return ToStringBuilder.reflectionToString(this,ToStringStyle.SHORT_PREFIX_STYLE);
}


posted @ 2017-05-20 21:59  llguanli  阅读(123)  评论(0编辑  收藏  举报