java实现Excel、xml导出table数据
学习记录:
不多说直接上代码
/**
* 导出品牌库
* @param response
* @return
* @throws IOException
*/
@ResponseBody
@RequestMapping(value = "exportMyBrandLibrary")
public void exportEmpoyeeInfo(HttpServletResponse response,String brandStatus) throws IOException{
response.setCharacterEncoding("UTF-8");
String[] reportItemName = {
"品牌","等级","管理员","今日新增"};
brandAnalyzes = brandAnalyzeService.selctBrandAnalyeExce();
//创建excel文件