原创 kafka-client 版本兼容問題
在Kafka 0.10.2.0之前,Kafka服務器端和客戶端版本之間的兼容性是“單向”的,即高版本的broker可以處理低版本client的請求。反過來,低版本的broker不能處理高版本client的請求。由於升級client要遠比升級
原创 -Djava.endorsed.dirs 作用
關於endorsed:可以的簡單理解爲-Djava.endorsed.dirs指定的目錄面放置的jar文件,將有覆蓋系統API的功能。可以牽強的理解爲,將自己修改後的API打入到JVM指定的啓動API中,取而代之。但是能夠覆蓋的類是有限制的
原创 modbus功能碼
ModBus常用功能碼 (功能碼爲10進制) 01 READ COIL STATUS 讀線圈寄存器 02 READ INPUT STATUS 讀狀態寄存器 03 RE
原创 使用JAVA代碼執行kettle作業
1.通過文件方式執行轉換。 public static void runTransfer(String[] params, String ktrPath) { Trans trans = null;
原创 公開webservice WSDL測試地址
騰訊QQ在線狀態 WEB 服務 Endpoint:http://www.webxml.com.cn/webservices/qqOnlineWebService.asmx Disco:http://www.webxml.com.cn/web
原创 Maven強制更新依賴
清理項目依賴的本地倉庫中的maven包 mvn dependency:purge-local-repository 這個命令會清理pom.xml中的包,並重新下載,但是並不清理不在pom.xml中的依賴包。 下面的擴展: mvn de
原创 java 調用執行jpython腳本 原
//pythonScript python腳本字符串 String pythonScript; ByteArrayInputStream byteArrayInputS
原创 java判斷當前是在class文件中運行還是在jar中運行 原
File file = new File(this.getClass().getProtectionDomain().getCodeSource().getLocation().getPath()); return file.isFile(
原创 收集的一些有用的網站 頂 原
hhttp://www.chinaz.com/ 站長之家 https://www.google.com/webmasters/tools/home?hl=zh-CN google 站長工具 https://www.google.com/an
原创 在命令(腳本)中提交到gitlab 原
call git add . && git commit -m "提交內容說明" && git push origin master --------- 提交到新的分支(服務器不存在該分支) call git add . && git co
原创 利用HttpClient 獲取網頁數據java代碼模版 原
HttpClientBuilder httpClientBuilder=HttpClients.custom(); HttpClient httpClient=httpClientBuilder.build();
原创 python安裝pandas 原
先安裝 pip 然後用pip安裝 pandas pip install pandas
原创 替換jvm虛擬機默認classloader 原
方法1: Run JVM with java.system.class.loader property: java -Djava.system.class.loader=myClassLoader myApplication -------
原创 Cannot create PyString with non-byte value 錯誤解決 原
interpreter = new PythonInterpreter(); var="字符串"; 將 interpreter.set(varName, new PyString(var)); 替換爲 interpreter.set(var
原创 the archive which is referenced by ...問題解決方案 原
"the archive which is referenced by the classpath,does not exist"解決辦法: 1、在Eclipse 的Project Explorer 視圖中右鍵項目 選“properties