HSSFSheet sheet = workbook.createSheet("list");CellRangeAddress ce = CellRangeAddress.valueOf("A2:J2");sheet.setAutoFilter(ce);其中需要注意的是"A2:J2",A2表示起始列J2表示结束列