java execl导入与设置
摘要:package com.icos.util; import java.io.OutputStream; import java.net.URLDecoder; import java.net.URLEncoder; import java.util.List; import javax.servlet.http.HttpServletResponse; import jxl.CellVie...
阅读全文
posted @
2019-08-21 10:12
tanada
阅读(251)
推荐(0)
javaAPI获取本地时间及指定格式
摘要:long start_time = System.currentTimeMillis(); new SimpleDateFormat("yyyyMM").format(new Date())
阅读全文
posted @
2019-08-21 10:05
tanada
阅读(312)
推荐(0)
ftp派发
摘要:// 派发 @RequestMapping(value = "/groupRuleUpload") public void GroupRuleUpload(@RequestParam("file") CommonsMultipartFile file, HttpServletRequest request, HttpServletResponse resp...
阅读全文
posted @
2019-08-21 09:27
tanada
阅读(167)
推荐(0)
利用字节流读取csv文件
摘要:// csv下载 @RequestMapping(value = "/selectTaskDownFile.do", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity selectTaskDownFile(HttpServletRequest...
阅读全文
posted @
2019-08-21 09:17
tanada
阅读(1003)
推荐(0)
Springmvc框架流程
摘要:service 写接口 service.impl 写接口实现 controller 写实现 dao写 xml里面sql方法 entity写实体类 util里面写公共方法
阅读全文
posted @
2019-08-20 17:10
tanada
阅读(143)
推荐(0)
java转码
摘要:// 转码,防止中文乱码 filename = URLEncoder.encode(filename, "UTF-8");
阅读全文
posted @
2019-08-20 16:29
tanada
阅读(207)
推荐(0)
从数据库查数,存储到list对象里
摘要:public List> selectorderDetails(String date, String province, String city, String vendor, String scene, int limitcount, int pagecount) { List> retorderList=new ArrayList>(); ...
阅读全文
posted @
2019-08-20 16:03
tanada
阅读(1369)
推荐(0)
java File读取本地文件,判断是否存在
摘要:File file = new File(inpath); if (!file.exists()) { file.createNewFile(); System.out.println("文件不存在,新建成功!"); } else { System.out.println("文件存在!"); }
阅读全文
posted @
2019-08-20 09:41
tanada
阅读(10370)
推荐(0)
java利用做的csv文件解析为list对象
摘要:import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.lang.reflect.Field; import java.util.ArrayList; import java.util.List; public class ReadCsv { /** * 读取csv文件用l
阅读全文
posted @
2019-08-20 09:39
tanada
阅读(5851)
推荐(0)
ssm框架写接口
摘要:运行入口:http://localhost:8080/java/selectIssueAll/getcityname 方法类:webview.controller.stsCityGuide.IssueController.java service接口:webview.service.stsCityGuide.IssueService(接口) service.impl接口(继承service,返回方
阅读全文
posted @
2019-08-20 09:36
tanada
阅读(1300)
推荐(0)