没有梦想,何必远方

摘要: public void getMd5OfFile() { //这是从mongodb获取的文件流 //DBObject dbObject = new BasicDBObject("filename","yansebuyiyangdeyanhuo5"); //DB db = mongoTemplate.getDb(); //GridF... 阅读全文
posted @ 2018-04-22 17:31 北极丶光 阅读(2778) 评论(0) 推荐(0)
摘要: 下载地址:http://download.redis.io/releases/ 作者地址http://www.cnblogs.com/northern-light/p/8813068.html 例如下载的是:redis-4.0.6.tar.gz tar -zxf redis-4.0.6.tar.gz 阅读全文
posted @ 2018-04-13 00:52 北极丶光 阅读(168) 评论(0) 推荐(0)
摘要: org.freemarker freemarker 2.3.20 package com.jy.common.util; import freemarker.template.Configuration; import freemarker.template.Template... 阅读全文
posted @ 2018-03-29 23:32 北极丶光 阅读(231) 评论(0) 推荐(0)
摘要: 1、查询当前时间 年月日时分秒 2、查询当前时间 前三小时 的时间点 3、查询当前时间 前三天 的时间点 4、查新当前时间 前三分钟 的时间点 5、查询当前时间 时分秒 6、查询当前时间 年月日时分秒 7、获取本月最后一天 8、获取本月第一天 9、获取下个月第一天 10、获取本月天数 11-1、获取 阅读全文
posted @ 2018-03-19 23:21 北极丶光 阅读(41015) 评论(0) 推荐(0)
摘要: 时间推移 阅读全文
posted @ 2018-03-19 23:10 北极丶光 阅读(248) 评论(0) 推荐(0)
摘要: 1、定时任务简述:指定触发规则后,按照一定的频率自动往复执行。默认只有一个单例化的线程池(始终只有一个线程) 去处理定时任务;只有一个线程时,多个任务需要并行(同时)执行时会产生时间差【每个任务从执行开始 到结束需要的时间不同,单线程情况下,只能等前一个任务结束才能开始执行下一个任务】,导致实际 上 阅读全文
posted @ 2018-03-18 10:41 北极丶光 阅读(6990) 评论(0) 推荐(0)
摘要: <?xml version="1.0" encoding="UTF-8"?> <User><name>张三</name><age>18</age><gender sex="男">男</gender></User> Document document2 = DocumentHelper.createD 阅读全文
posted @ 2018-03-10 18:01 北极丶光 阅读(271) 评论(0) 推荐(0)
摘要: package com.hxgd.util; import java.lang.annotation.*; /** *自定义注解 拦截Controller 【需要设置启动aspectj注解,通知spring使用cglib而不是jdk代理】 */ @Target({ElementType.PARAMETER, ElementType.METHOD}) ... 阅读全文
posted @ 2018-03-10 17:48 北极丶光 阅读(5832) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-03-10 17:39 北极丶光 阅读(143) 评论(0) 推荐(0)
摘要: package com.hxgd.ms.common.util; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.i... 阅读全文
posted @ 2018-03-10 17:36 北极丶光 阅读(2427) 评论(0) 推荐(0)