一、fastjson
解析字符串:
1 | //data是json字符串,TraderProductListDto是要转换为的dto |
解析字符串:
1 | //data是json字符串,TraderProductListDto是要转换为的dto |
1.1 List截取字符串
1 | noRaiseDrop.subList(fromIndex, toIndex); |
1.2 List拼接
用Apache的org.apache.commons.lang.StringUtils.
继续阅读1 | # brew is a part of Mac OS X package manager called Homebrew (http://brew.sh/). |