public static void writeAndClose(String path) throws InvocationTargetException, NoSuchMethodException,
            IllegalAccessException, IOException {
        writeTo(path);
        xssfWorkbook.close();
        createXssfWorkbook();
    }
public static void writeAndClose ( String path ) throws InvocationTargetException , NoSuchMethodException , IllegalAccessException , IOException { writeTo ( path ) ; xssfWorkbook . close ( ) ; createXssfWorkbook ( ) ; }
保存到本地，关闭工作簿，并创建一个新的工作簿

@param path 路径

@throws IOException 异常
@throws NoSuchMethodException 异常
@throws IllegalAccessException 异常
@throws InvocationTargetException 异常