摘要: 有一些文件保存在项目中需要在浏览器打开的页面中下载,需要找准文件的存储路径 工程格式 2.代码 public String execute() throws Exception { HttpServletResponse response = ServletActionContext.getResp 阅读全文
posted @ 2020-12-29 17:26 代码界的绵绵雨 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 查询转换十万条数据时 查询转换五十万条数据时 查询转换五十万条数据时 查询转换一百万条数据时 阅读全文
posted @ 2020-11-03 10:38 代码界的绵绵雨 阅读(214) 评论(0) 推荐(0) 编辑
摘要: json数据格式 { "head": { "message": "接口调用成功", "status": "0" }, "data": { "total": 1, "dataList": [{ "issueDept": "无线电管理处", "certificateNumber": "A00003227 阅读全文
posted @ 2020-09-29 14:59 代码界的绵绵雨 阅读(1953) 评论(0) 推荐(0) 编辑
摘要: function test(){ alert("123") var xhr = new XMLHttpRequest();//发送异步请求 var url='/efficiency/web/selectDeptByCity'; xhr.open("POST",url,true); var deptc 阅读全文
posted @ 2020-08-18 17:26 代码界的绵绵雨 阅读(261) 评论(0) 推荐(0) 编辑
摘要: /*设置滚动属性*/tbody { display: block; max-height: 400px; overflow-y: scroll;}/*设置头与内容自动对齐*/table thead,tfoot,tbody tr { display: table; width: 100%; table 阅读全文
posted @ 2020-08-10 11:32 代码界的绵绵雨 阅读(1281) 评论(0) 推荐(0) 编辑
摘要: 例子: <!-- poi --><dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>3.17</version> <exclusions> <exclusion> <groupId> 阅读全文
posted @ 2020-07-30 20:49 代码界的绵绵雨 阅读(125) 评论(0) 推荐(0) 编辑
摘要: /** * 文件下载 * @param fileName * @param filePath * @param request * @param response * @return */@RequestMapping("/download")public String download( Stri 阅读全文
posted @ 2020-05-28 14:55 代码界的绵绵雨 阅读(1059) 评论(0) 推荐(0) 编辑
摘要: /** * 上传文件到fastdfs图片服务器 * @param file * @return * @throws IOException * @throws MyException */public HashMap<String, String> fastdfsUpload(MultipartFi 阅读全文
posted @ 2020-05-28 14:48 代码界的绵绵雨 阅读(495) 评论(0) 推荐(0) 编辑
摘要: 打开服务器tomcat bin 下 catalina.sh 添加 CATALINA_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7777" 配置idea debug启动 阅读全文
posted @ 2019-12-06 17:42 代码界的绵绵雨 阅读(967) 评论(0) 推荐(0) 编辑
摘要: 1 String str = "{\"name\":\"zhangsan\",\"password\":\"zhangsan123\",\"email\":\"10371443@qq.com\"}"; 2 JSONObject json = JSONObject.fromObject(str); 3 阅读全文
posted @ 2019-09-20 16:48 代码界的绵绵雨 阅读(517) 评论(0) 推荐(0) 编辑