08 2024 档案
摘要:转自:http://t.csdnimg.cn/jl1ZN 原文链接:https://blog.csdn.net/wzhy2016/article/details/131178612 操作流程: 创建Callable实现类的实例,并实现call方法。 使用FutureTask类来包装Callable对
阅读全文
摘要:解决: 1. 点击config Table (点击后也可以查看并修改字段类型是否都配置对,也可以不修改) 2. 重启idea即可
阅读全文
摘要:使用Navicat创建定时执行任务: 1. 准备需要定时执行的sql脚本: 如定时更新时间: update your_table y set y.update_time = NOW() where y.id = '123'; 2. 创建函数: ① 进入navicat找到函数选择新建函数,填写名称并选
阅读全文
摘要:PDF转word网站(懒人办公): https://www.lanren.work/
阅读全文
摘要:1.controller: @PostMapping("/import-excel")@Transactionalpublic AjaxResult importExcel(@RequestPart(value = "file") MultipartFile file) throws Excepti
阅读全文
摘要:eg: @Override public void exportExcel(HttpServletResponse response) throws Exception{ // 创建Excel文档 XSSFWorkbook workbook = new XSSFWorkbook(); XSSFShe
阅读全文
摘要:1. Annotation: ① FillOnInsert import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPol
阅读全文
摘要:方式一: public List<DevCategory> list() { List<DevCategory> allList = devCategoryDao.findAllData(); return allList.stream().filter(s -> s.getPid() == nul
阅读全文