摘要: 前端代码 <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)