程式設計遇到錯誤的排查方法

2021-08-07 06:25:37 字數 574 閱讀 8486

1.service註解錯誤

2.timeout要自行設定,預設時間不夠用

3.xml中配置properties路徑是否正確(有時候就是會錯一位目錄)

4.大型專案時候,寫完程式沒有install介面

5.型別string integer double 寫錯,寫混,寫反

6.配置檔案中ref 和id 確保相互對應

8.介面是否implements serializable(pojo類)

9.執行程式前先用資料庫軟體看是否連線成功

10.發布錯誤tomcat熱啟動和非熱啟動都要實驗做對比

11. domain xml配置檔案中 name寫錯報錯 column寫錯不報錯

12.domain修改時候 get和set沒有加

13.split 使用時候一定注意其中是否有空格,空了幾個格,split(",")與split(", ")完全不同結果

14.測試時候第一遍盡量輸入正確資料,測試出生年月寫成2023年99月89日, 測試資料太胡扯,容易導致誤判正確程式.

15.一旦相關類修改要相應立即在spring,struts中配置.防止忘記後期進行大量排查

zookeeper 錯誤排查方法

最近學習zookeeper 遇到乙個問題,按照要求配置完成後,執行zkserver.sh start,命令列顯示 jmx enabled by default using config usr local hadoop zookeeper 3.4.6 bin conf zoo.cfg startin...

curl 錯誤排查方法

症狀 php curl呼叫https出錯 排查方法 在命令列中使用curl呼叫試試。原因 伺服器所在機房無法驗證ssl證書。解決辦法 跳過ssl證書檢查。curl setopt ch,curlopt ssl verifypeer,false 症狀 php curl呼叫curl exec返回bool ...

記錄程式設計遇到的錯誤

1.error intptr t was not declared in this scope a adds include 未解決 b intptr t 等在io.h 中定義,在linux下本來就沒有,所以不可用。linux下 include 實現遍歷目錄。參考 2.error system wa...