poi 设置样式

先设置垂直居中

在设置水平居中

style.setAlignment(CellStyle.VERTICAL_CENTER);
style.setAlignment(CellStyle.ALIGN_CENTER);

原文地址:https://www.cnblogs.com/xxwtfw/p/7073032.html