• 2024-07-04生成word文档,内容为表格(第一次实操)
    packagecom.cqbb.common.utils.poi;importcom.alibaba.fastjson2.JSONArray;importcom.alibaba.fastjson2.JSONObject;importcom.cqbb.common.config.BBKJConfig;importorg.apache.commons.io.IOUtils;importorg.apache.poi.openxml4j.exceptions.InvalidFormatExceptio
  • 2024-03-21Leecode 杨辉三角Ⅱ
    Day7第二题我的思路和上一篇的杨辉三角一致,只不过将List获取层数的代码List.get(0).add()修改成数组classSolution{publicList<Integer>getRow(introwIndex){List<Integer>getRow=newArrayList<Integer>();int[][]dp=newint[ro
  • 2023-11-14jdbc批量插入
    1.开启JDBCrewriteBatchedStatements=true2.准备数据PreparedStatementpreparedStatement=connection.prepareStatement(InsertSql);3.插入数据并添加到批次preparedStatement.setObject(columnIndex,resultSet.getObject(columnIndex));preparedStatement.addBatc
  • 2023-10-19npoi快速读入到DGV
     //nuget导入npoi我就不说了。。。 privatevoidbutton1_Click(objectsender,EventArgse){//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//交互->不需要拖入控件stringstrFileName="";