您好,尝试后还未生效。
worksheet.getRange(3,0,1, 21).getFont().setName("楷体");
worksheet.getUsedRange().autoFit(true);
InputStream inputStream = MultipartFileUtil.workbookToInputStream(workbook);
try {
minioService.putObjectToDisk(BUCKET_NAME, filePathExcel, inputStream, server, user, password);
} catch (Exception exception) {
logger.info(exception.getMessage());
return false;
}
是否与我autofit后未进行save操作有关呢
|