摘要: 使用kafka消费数据时报Producer错误,具体错误如下: kafka.producer.SyncProducer:103 Producer connection to xxx:9092 unsuccessfuljava.nio.channels.ClosedByInterruptExcepti 阅读全文
posted @ 2018-11-12 19:29 codercg 阅读(1397) 评论(0) 推荐(0) 编辑
摘要: 1. 添加应用服务器tomcat 2. 将tomcat配置添加到项目中 artifacts配置:添加deploy, 添加artifacts,选择Web Application: Exploded > From Modules... 其它配置默认,即可; 配置Application context,启 阅读全文
posted @ 2018-11-12 15:15 codercg 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 问题现象:从svn上签下源代码,本地执行打包命令,提示如下错误: [ERROR] Failed to execute goal on project dddwriter: Could not resolve dependencies for project com.xxx.yyy:dddwriter 阅读全文
posted @ 2018-11-08 19:45 codercg 阅读(2437) 评论(0) 推荐(0) 编辑
摘要: 线上项目出现问题,需要排查问题原因,个人认为比较高效的方法如下: 阅读全文
posted @ 2018-11-03 16:51 codercg 阅读(436) 评论(0) 推荐(0) 编辑
摘要: certutil -hashfile D:\1.exe MD5certutil -hashfile D:\1.exe SHA1certutil -hashfile D:\1.exe SHA256 阅读全文
posted @ 2017-10-31 19:20 codercg 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 稳定的排序算法: 冒泡排序 插入排序 归并排序 计数排序 基数排序 桶排序 不稳定的排序算法: 选择排序 快速排序 堆排序 希尔排序 阅读全文
posted @ 2017-09-07 20:37 codercg 阅读(177) 评论(0) 推荐(0) 编辑
摘要: package code.test; import java.util.Comparator; import java.util.Iterator; import java.util.PriorityQueue; import java.util.Queue; /** * 实验表明,在java中: * 1.toString()方法或迭代元素:优先级队列打印或者迭代,得到的输出顺序都为堆结... 阅读全文
posted @ 2017-09-07 20:31 codercg 阅读(925) 评论(0) 推荐(0) 编辑
摘要: 在idea中设置记住git的用户名和密码 1、在项目根目录下执行以下git命令: git config --global credential.helper store 2、执行上述命令后,在idea中第一次pull或push需要输入用户名和密码,之后就不用再输入了。转自:http://blog.c 阅读全文
posted @ 2017-08-10 16:21 codercg 阅读(16236) 评论(0) 推荐(1) 编辑
摘要: 参考:https://git-scm.com/book/zh/v1/%E8%B5%B7%E6%AD%A5-%E5%AE%89%E8%A3%85-Git Git 的工作需要调用 curl,zlib,openssl,expat,libiconv 等库的代码,所以需要先安装这些依赖工具。 之后,从下面的 阅读全文
posted @ 2017-08-06 10:35 codercg 阅读(603) 评论(0) 推荐(0) 编辑