java excel 导出 中文自适应宽度poi 使用sheet这个方法 亲测有效 t为标题内容 0+i是标题的位置 sheet.setColumnWidth(0 + i, t.getBytes().length * 2 * 256);