随笔分类 -  功能实现

摘要:实现思路: 1. checkbox全选获取批量删除的id数组 2. ajax以字符串的形式将id数组传给控制器 3. 控制器将字符串分割成List数组作为参数传给mapper 具体代码: 1. 前端代码 <table> <thead> <tr> <th>#</th> <th>id</th> <th> 阅读全文
posted @ 2019-10-21 16:37 lcsin 阅读(3046) 评论(0) 推荐(0)
摘要:1. 下载kkFileview:https://gitee.com/kekingcn/file-online-preview/releases 2. 启动服务 进入 bin 目录,双击 startup.bat 启动服务 3. 访问 http://127.0.0.1:8012 测试是否成功启动服务 4 阅读全文
posted @ 2019-10-20 19:49 lcsin 阅读(2759) 评论(0) 推荐(0)
摘要:1. 文件下载类 import javax.servlet.http.HttpServletResponse; import java.io.*; public class DownloadUtil { public boolean fileDownload(HttpServletResponse 阅读全文
posted @ 2019-10-19 20:30 lcsin 阅读(1058) 评论(0) 推荐(0)
摘要:1. 修改SpringBoot默认文件上传大小 servlet: multipart: max-file-size: 10MB 2. 设置Spring Boot内置tomcat虚拟路径 @Configuration public class WebConfig implements WebMvcCo 阅读全文
posted @ 2019-10-19 20:27 lcsin 阅读(419) 评论(0) 推荐(0)