cellStyle.setAlignment(CellStyle.ALIGN_CENTER);//水平居中 cellStyle.setVerticalAlignment(CellStyle.VERTICAL_CENTER);//垂直居中