原创 shell 命令執行時間和日誌統計 原

  列出1小時內佔用cpu最大的10個進程 ps 使用watch監視命令輸出 watch -n second 指定更新輸出的時間間隔 watch -d 突出標示wach 輸出中的差異   watch command watch 'ls

原创 mockito learn one 原

mockito 介紹   mockito是一個很好用的模擬測試框架,能夠讓你寫出簡單優美測試,它不會給你殘留的測試,因爲它可讀而且能夠簡單的驗證錯誤。 如何使用?     引入依賴   <!-- https://mvnrepository.

原创 es-sql ES報錯Result window is too large問題處理 原

我在使用Elasticsearch進行search查詢的過程中,出現了Result window is too large問題。 這裏簡單做一個報錯復現: In [1]: import requests In [2]: request

原创 IDEA :Annotation processing is not supported for module cycles 原

Error:java: Annotation processing is not supported for module cycles. Please ensure that all modules from cycle [spring-

原创 SpringBoot中Mybatis打印sql 原

application.properties中添加 logging.level.com.example.demo.dao=debug com.example.demo.dao 是對應xml中相應interface層  

原创 mysql中查詢連接數 原

show variables like '%max_connections%'; show status like 'Threads_connected%'; show PROCESSLIST; 查看正在鎖的事務 SELECT * FROM

原创 shell 文件的歸檔和壓縮 原

tar歸檔 -c 創建文件 -f 指定文件 -v 冗餘信息 打包到歸檔文件 tar -cf output.tar file1 file2 file3 folder1 .. 列出歸檔文件的內容   tar -tf output.tar    

原创 google guava 引入guava原因 一 原

  guava包含了java項目依賴的幾個google核心庫,集合,緩存,原始的支持,併發庫,基本的註解,字符串處理,i/o等等   基本的特點 避免了null 前置檢查 testpreconditions 基本對象方法 hashcoe