03 2022 档案

摘要:一、定时任务 通过配置注解来开启对定时任务的支持,然后在需要定时执行的方法上面配置注解@Scheduled即可。 二、注解描述 @EnableScheduling:在启动类中使用该注解,开启自动扫描功能 @EnableScheduling public class App { public stat 阅读全文
posted @ 2022-03-28 19:36 无效_rank 阅读(553) 评论(0) 推荐(0) 编辑
摘要:WorkBook workbook = new WorkBook(); Sheet sheet = workbook.creatSheet("sheet1"); String[] types = {"1","2","3"} //设置行列范围(资源类型) CellRangeAddressList ad 阅读全文
posted @ 2022-03-22 09:48 无效_rank 阅读(536) 评论(0) 推荐(0) 编辑
摘要:原因: config.js配置了不同的路径,导致和菜单里面实际配置的地址路径不配导致,路由找不到对应的地址就跳转空白。 解决方案: 将菜单内的地址统一,修改为统一地址。 阅读全文
posted @ 2022-03-18 19:12 无效_rank 阅读(405) 评论(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 阅读(273) 评论(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 阅读(39) 评论(0) 推荐(0) 编辑
摘要:org.apache.poi 读excel空列跳过的问题 用org.apache.poi的包做excel导入,无意间发现如果excel文件中有空列,空列后面的数据全部读不到。查来查去原来是HSSFRow提供两个方法:getPhysicalNumberOfCells和getLastCellNum。ge 阅读全文
posted @ 2022-03-15 17:22 无效_rank 阅读(93) 评论(0) 推荐(0) 编辑
摘要:原因 @Controller 是视图解析器的,即Return返回的是视图,即jsp或者html页面的。如果返回数据json、xml等,需要在对应的方法上加上@ResponseBody注解。 @RestController 是@Controller和@ResponseBody两个注解的结合,返回jso 阅读全文
posted @ 2022-03-15 16:19 无效_rank 阅读(407) 评论(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 阅读(392) 评论(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 阅读(39) 评论(0) 推荐(0) 编辑
摘要:方法一:foreach 容易出现的错误:出现SQL语句错误 解决方式: 在数据库的连接url后添加allowMultiQueries=true(允许批量更新) jdbc.url=jdbc:mysql://localhost:3306/mybatis?allowMultiQueries=true 例子 阅读全文
posted @ 2022-03-11 09:25 无效_rank 阅读(860) 评论(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 阅读(254) 评论(0) 推荐(0) 编辑
摘要:方法一:通过ref直接调用子组件的方法 1 //在父组件中 2 <template> 3 <a @click = 'openConfigure'> 4 <a-icon type = 'setting'/> 5 配置 6 <add-or-update ref='addOrUpdate'> 7 </a> 阅读全文
posted @ 2022-03-08 15:53 无效_rank 阅读(295) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示