JMJyuto Meowinjerry80409.hashnode.dev·Jul 18, 2025 · 5 min readJava 轉換 COBOL COMP-3 資料老舊的金融系統編碼問題 客戶的系統是早期的 IBM-Z (COBOL), 用的是 EBCDIC 的編碼, 而台灣的環境會搭配 BIG5(cp-950) 的編碼. EBCDIC 是 IBM 系統專用的編碼, 跟 ASCII 差異如下. 為了讓資了可以被處理, 需要進行資料清洗與解碼, 礙於客戶的資安規範與其他因素限制下, 合作過程必須處理 EBCDIC + Binary 的格式文件, 來做資料轉移. 資料格式 文字類型的 BIG5 編碼處理 中文的欄位資料是採用 Big5 (cp950), 撇開...00
JMJyuto Meowinjerry80409.hashnode.dev·Jun 2, 2025 · 1 min readSpring Batch 5 不建議使用 EnableBatchProcessing因為最近要處理 Data pipeline 的問題, 重新溫習了 Spring batch 配置, 其中一個地雷是 @EnableBatchProcessing 的 annotation 宣告, 導致了 Batch 作業相關 DDL 沒有被建立. 在 Spring boot 3.0 的 Migration Guide 裡面特別注記了這段, 建議不應該再使用 @EnableBatchProcessing. @ EnableBatchProcessing is now discouraged Pr...00
JMJyuto Meowinjerry80409.hashnode.dev·May 19, 2025 · 1 min readJava21 Collection 的 getFirst最近習慣了讓 github 的 copilot 來 review 協助, 其中一個提示是 getFirst 的風險. If cmd.getPolicies() returns a standard List, using getFirst() might cause runtime issues. Consider using get(0) to retrieve the first element or ensure the list supports getFirst(). getFir...00
JMJyuto Meowinjerry80409.hashnode.dev·Feb 3, 2025 · 1 min readintellij 用 gradle 跑測試找不到 resultsEnable Show Passed option for tests in Run/Debug tool window:00
JMJyuto Meowinjerry80409.hashnode.dev·Jan 29, 2025 · 2 min read為何要使用 spotlessSpotless https://github.com/diffplug/spotless 讓你的專案乾淨, 整潔, 對齊, 就是這個專案的主要目的. 可以用來處理專案格式化, 縮排, coding style 一致性, 除了支援目前的主流語言, 與整合了各種打包工具, 甚至不用安裝在專案內, 透過 IDE 的 plugins 安裝就能完成 source code 排版格式化, 目前在 github 有 4.7 k stars. 我傾向於使用 google-java-format 而 spotl...00