日期:2014-05-16 浏览次数:20315 次
用csv简单 os = response.getOutputStream(); csv = new CsvWriter(os, ',', Charset.forName("GBK")); csv.writeRecord(new String[] { "操作人", "日志类型", "操作", "操作对象", "操作时间", "登陆ip" }); csv.writeRecord(new String[] {"hello","测试","测试","hello","2011-12-29","127.0.0.1" }); csv.flush();