使用shifRows方法,第1个参数是指要开始插入的行,第2个参数是结尾行数 HSSFSheet sheet = workbook.getSheetAt(0); sheet.shiftRows(12, 24, 1);