随笔分类 -  JAVA

摘要:http://www.programcreek.com/java-design-patterns-in-stories/ 阅读全文
posted @ 2016-09-10 14:52 kane_zch 阅读(132) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/feihong247/article/details/7874063 阅读全文
posted @ 2016-09-01 15:00 kane_zch 阅读(160) 评论(0) 推荐(0)
摘要:运行结果: 阅读全文
posted @ 2016-08-25 09:51 kane_zch 阅读(949) 评论(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 阅读(2909) 评论(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 阅读(297) 评论(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 阅读(2673) 评论(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 阅读(1850) 评论(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 阅读(313) 评论(0) 推荐(0)
摘要:https://maven.apache.org/general.html 阅读全文
posted @ 2016-08-04 16:56 kane_zch 阅读(112) 评论(0) 推荐(0)
摘要:最近写了一个docker微服务,此微服务需要在晚上12点时远程触发hadoop集群的一个hive离线计算任务,因此需要 远程调用linux shell 于是用到了ganymed-ssh2 这个库 Maven里的依赖如下: 测试代码如下: 参考: http://www.cnblogs.com/-wan 阅读全文
posted @ 2016-08-03 15:44 kane_zch 阅读(1317) 评论(0) 推荐(0)
摘要:http://martin3000.iteye.com/blog/1326578 阅读全文
posted @ 2016-08-01 17:17 kane_zch 阅读(276) 评论(0) 推荐(0)
摘要:Java是如何读到hbase-site.xml 的内容的 Java客户端使用的配置信息是被映射在一个HBaseConfiguration 实例中. HBaseConfiguration有一个工厂方法, HBaseConfiguration.create(); 运行这个方法的时候,他会去CLASSPA 阅读全文
posted @ 2016-08-01 11:03 kane_zch 阅读(547) 评论(0) 推荐(0)
摘要:http://dockone.io/article/582 阅读全文
posted @ 2016-07-28 15:51 kane_zch 阅读(173) 评论(0) 推荐(0)
摘要:https://blog.giantswarm.io/getting-started-with-java-development-on-docker/ 阅读全文
posted @ 2016-07-28 15:51 kane_zch 阅读(113) 评论(0) 推荐(0)
摘要:http://bglmmz.iteye.com/blog/2063856 阅读全文
posted @ 2016-07-28 14:22 kane_zch 阅读(171) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/beidou321/article/details/6499288/ 阅读全文
posted @ 2016-07-28 10:48 kane_zch 阅读(174) 评论(0) 推荐(0)
摘要:org.apache.maven.plugins maven-compiler-plugin 1.8 1.8 ... 阅读全文
posted @ 2016-07-27 16:42 kane_zch 阅读(9796) 评论(0) 推荐(0)
摘要:http://jingyan.baidu.com/album/db55b60990f6084ba30a2fb8.html?picindex=5 阅读全文
posted @ 2016-07-27 16:40 kane_zch 阅读(619) 评论(0) 推荐(0)
摘要:http://jingyan.baidu.com/article/9989c746064d46f648ecfe9a.html 阅读全文
posted @ 2016-07-27 13:57 kane_zch 阅读(219) 评论(0) 推荐(0)
摘要:http://www.codeceo.com/article/log4j-usage.html 阅读全文
posted @ 2016-07-27 11:45 kane_zch 阅读(101) 评论(0) 推荐(0)