摘要: Flume1.6版本,elasticsearch1.5.1版本,将Kafka以及ES的Lib文件夹下所有jar包导入Flume Lib下。 阅读全文
posted @ 2018-09-26 11:18 Jachs 阅读(536) 评论(0) 推荐(0) 编辑
摘要: 下载Spring-Boot源码,目录结构spring-boot-2.1.0.M2\spring-boot-2.1.0.M2\spring-boot-project\spring-boot\src\main\java\org\springframework\boot Banner为接口具体实现类二个, 阅读全文
posted @ 2018-09-14 16:35 Jachs 阅读(592) 评论(0) 推荐(0) 编辑
摘要: SpringBoot连接elasticsearch异常 解决办法注释掉elasticsearch配置文件中 cluster.name。 阅读全文
posted @ 2018-09-11 16:07 Jachs 阅读(2271) 评论(0) 推荐(0) 编辑
摘要: System.out.println(RandomStringUtils.random(5));//随机多少个随机字符中文环境乱码 System.out.println(RandomStringUtils.random(5, "abcdefg"));//随机多少个String指定类容内char Sy 阅读全文
posted @ 2018-09-07 11:19 Jachs 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 记录一次Spring支持elasticsearch Spring官网 https://docs.spring.io/spring-data/elasticsearch/docs/3.1.0.RC2/reference/html/#repositories API官网 https://docs.spr 阅读全文
posted @ 2018-09-04 17:19 Jachs 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 用到Socket序列化对象网络传输时ObjectOutputStream一直刷新连接 用户代码 用户写入线程代码 服务器代码 服务器 写入代码 服务器读取代码 再新起一个项目也使用ObjectInputStream序列化对象传输时正常未找到原因,改用传输json使用Gson 阅读全文
posted @ 2018-08-16 17:30 Jachs 阅读(992) 评论(0) 推荐(0) 编辑
摘要: 以上是测试用的java类。 一下是去除注释代码 阅读全文
posted @ 2018-08-10 16:01 Jachs 阅读(493) 评论(0) 推荐(0) 编辑
摘要: 1 int Number=1234567908; 2 StringBuffer numberSB=new StringBuffer(Number+""); 3 int index=numberSB.length(); 4 while(true) { 5 index=index-3; 6 ... 阅读全文
posted @ 2018-08-10 15:18 Jachs 阅读(408) 评论(0) 推荐(0) 编辑
摘要: Listlist1=new ArrayList(); list1.add("a"); list1.add("b"); list1.add("c"); list1.add("d"); list1.add("e"); Listlist2=new ArrayList();... 阅读全文
posted @ 2018-08-10 14:25 Jachs 阅读(743) 评论(0) 推荐(0) 编辑