上一页 1 2 3 4 5 6 7 ··· 12 下一页
摘要: 运行结果: 阅读全文
posted @ 2016-08-25 09:51 kane_zch 阅读(940) 评论(0) 推荐(0) 编辑
摘要: 在启动参数上加上时区设置-Duser.timezone=GMT+08 java -jar -Duser.timezone=GMT+08 target/micservice_histclientsdataetl-1.0-SNAPSHOT-jar-with-dependencies.jar local 阅读全文
posted @ 2016-08-17 09:50 kane_zch 阅读(2858) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { File file = new File("E:\\\\eclipse\\\\workspace\\\\helloworlddocker\\\\log"); // 判断文件目录是否存在,且是文件目录,非文件 if (file.exists() && file.isD... 阅读全文
posted @ 2016-08-16 15:22 kane_zch 阅读(290) 评论(0) 推荐(0) 编辑
摘要: public static void updateFileNames(String url, String index){ File file = new File(url); //判断文件目录是否存在,且是文件目录,非文件 if(file.exists() && file.isDirectory()){ File[] ch... 阅读全文
posted @ 2016-08-16 15:21 kane_zch 阅读(2661) 评论(0) 推荐(0) 编辑
摘要: java2平台为我们提供了丰富的日期时间API。如java.util.Date;java.util.calendar;java.text.DateFormat等。那么它们之间有什么关系呢? 首先,java.util.Date代表一个时间点,其值为距公元1970年1月1日 00:00:00的毫秒数。所 阅读全文
posted @ 2016-08-16 11:32 kane_zch 阅读(1816) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/vikings-blog/p/4238062.html 阅读全文
posted @ 2016-08-05 17:23 kane_zch 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 参考 http://wangbaoaiboy.blog.163.com/blog/static/52111910201111892938552/ java使用Runtime.exec执行linux命令重定向或管道问题: http://my.oschina.net/hetiangui/blog/133 阅读全文
posted @ 2016-08-05 17:22 kane_zch 阅读(302) 评论(0) 推荐(0) 编辑
摘要: https://maven.apache.org/general.html 阅读全文
posted @ 2016-08-04 16:56 kane_zch 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 最近写了一个docker微服务,此微服务需要在晚上12点时远程触发hadoop集群的一个hive离线计算任务,因此需要 远程调用linux shell 于是用到了ganymed-ssh2 这个库 Maven里的依赖如下: 测试代码如下: 参考: http://www.cnblogs.com/-wan 阅读全文
posted @ 2016-08-03 15:44 kane_zch 阅读(1289) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/ccc7560673/article/details/16880875 阅读全文
posted @ 2016-08-03 14:42 kane_zch 阅读(487) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 12 下一页