原文:java获取System.out输出字符串 源代码下载地址:http://www.zuidaima.com/share/1567106782268416.htm 最近有个需求想获取控制台输出的字符串,整理分享下,maven+junit。