![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
尕舞丶
这个作者很懒,什么都没留下…
展开
-
java 定时任务之一 @Scheduled注解(第一种方法)
使用spring @Scheduled注解执行定时任务: 运行!!! 关于Cron表达式(转载) 表达式网站生成: http://cron.qqe2.com/ 直接点击 作者:http://blog.csdn.net/supingemail/article/details/22274279 cronExpression定义时间规则,Cron表达式由6或7个空格分隔的时间字段组...转载 2018-08-23 10:09:24 · 852 阅读 · 0 评论 -
文件保存项目路径下和下载项目中的excel文档
文件保存项目路径下 @ResponseBody @RequestMapping(value = "/uploadEx") public Result upload(HttpServletRequest request, @RequestParam(value = "file", required = false) MultipartFile file) throws IOExceptio...原创 2018-10-18 15:34:17 · 4173 阅读 · 1 评论 -
httpclient模拟post请求json封装表单数据
public static String httpPostWithJSON(String url) throws Exception { HttpPost httpPost = new HttpPost(url); CloseableHttpClient client = HttpClients.createDefault(); String re...转载 2018-10-29 19:42:58 · 421 阅读 · 0 评论 -
java 下载文件
HTML页面代码 function down(index){ var rowdata=_result[index]; var hqId=rowdata.hqId; var url = "../rest/hisQueTemp/down?hqId="+hqId; //mybatis+spring url = encodeURI(url); location.href = u...原创 2018-11-28 14:53:48 · 736 阅读 · 0 评论 -
net.sf.json.JSONException: java.lang.reflect.InvocationTargetException
net.sf.json.JSONException: java.lang.reflect.InvocationTargetException 这个错误是在封装JSONArray的时候报的 解决方法: 在dao里把sql语句的date类型的直接写成 to_char('date类型的字段','yyyy-MM-dd') 就不会报错了 日期格式自己定义...原创 2014-06-26 09:33:34 · 264 阅读 · 0 评论