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