遇到的問題
問題1:執行器地址為空
原因--》執行器中 沒有地址
解決方案--》輸入地址:http://IP地址:端口
IP地址
端口
問題2:異常信息unknown code for readObject at 0x3c
1.錯誤提示無法找到執行器。
原因:需要啟動兩個項目 xxl-job-admin 、xxl-job-executor-samples (這里我用的是xxl-job-executor-sample-springboot)
2.調度成功了,但是執行不會停止,只能手動停止,執行結果是失敗的。
或者啟動時遇到以下的異常信息:
unknown code for readObject at 0x3c
原因:這種提示的錯誤一般出在admin配置address沒有配對。
檢查xxl-job-executor-springboot-example里面配置文件的xxl.job.admin.addresses=http://localhost:8080/xxl-job-admin
與啟動步驟2是否一致
完成!