摘要: WorkBook workbook = new WorkBook(); Sheet sheet = workbook.creatSheet("sheet1"); String[] types = {"1","2","3"} //设置行列范围(资源类型) CellRangeAddressList ad 阅读全文
posted @ 2022-03-22 09:48 无效_rank 阅读(580) 评论(0) 推荐(0)
摘要: 原因: config.js配置了不同的路径,导致和菜单里面实际配置的地址路径不配导致,路由找不到对应的地址就跳转空白。 解决方案: 将菜单内的地址统一,修改为统一地址。 阅读全文
posted @ 2022-03-18 19:12 无效_rank 阅读(426) 评论(0) 推荐(0)
摘要: pom.xml依赖 <!--poi文档处理--> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>3.17</version> </dependency> <dependency 阅读全文
posted @ 2022-03-16 13:36 无效_rank 阅读(288) 评论(0) 推荐(0)
摘要: 前端代码 <template> <a-upload name = "file" :show-upload-list = "false" action="填写后端接口地址” :headers = "headers" @change = "handleChange" > <a-button> <a-ic 阅读全文
posted @ 2022-03-15 19:24 无效_rank 阅读(43) 评论(0) 推荐(0)
摘要: org.apache.poi 读excel空列跳过的问题 用org.apache.poi的包做excel导入,无意间发现如果excel文件中有空列,空列后面的数据全部读不到。查来查去原来是HSSFRow提供两个方法:getPhysicalNumberOfCells和getLastCellNum。ge 阅读全文
posted @ 2022-03-15 17:22 无效_rank 阅读(98) 评论(0) 推荐(0)
摘要: 原因 @Controller 是视图解析器的,即Return返回的是视图,即jsp或者html页面的。如果返回数据json、xml等,需要在对应的方法上加上@ResponseBody注解。 @RestController 是@Controller和@ResponseBody两个注解的结合,返回jso 阅读全文
posted @ 2022-03-15 16:19 无效_rank 阅读(478) 评论(0) 推荐(0)
摘要: 错误信息Access to XMLHttpRequest at 'http://xxx.xxx.xxx.xxx:8080/a' from origin 'http://xxx.xxx.xxx.xxx:3000' has been blocked by CORS policy : No 'Access 阅读全文
posted @ 2022-03-15 15:34 无效_rank 阅读(413) 评论(0) 推荐(0)
摘要: 07版读取数据 public readExecl() { //输入流 path:文件地址 InputStream is = new FileInputStream(path); //创建工作簿 WorkBook workBook = new WorkBook(is); //得到工作表1 Sheet 阅读全文
posted @ 2022-03-14 19:00 无效_rank 阅读(48) 评论(0) 推荐(0)
摘要: 方法一:foreach 容易出现的错误:出现SQL语句错误 解决方式: 在数据库的连接url后添加allowMultiQueries=true(允许批量更新) jdbc.url=jdbc:mysql://localhost:3306/mybatis?allowMultiQueries=true 例子 阅读全文
posted @ 2022-03-11 09:25 无效_rank 阅读(887) 评论(0) 推荐(0)
摘要: foreach元素的属性主要有item,index,collection,open,separator,close。 item:集合中元素迭代时的别名,该参数为必选。 index:在list和数组中,index是元素的序号,在map中,index是元素的key,该参数可选 open:foreach代 阅读全文
posted @ 2022-03-10 19:48 无效_rank 阅读(270) 评论(0) 推荐(0)