[xuxueli/xxl-job]执行器springboot升级到了2.1.0,导致jobHandler没有被注册到调度器

2024-05-15 881 views
0

执行器springboot升级到了2.1.0,导致jobHandler没有被注册到调度器 请问这个大概是什么原因呢 admin端执行的时候报 jobHandler not found

回答

4

看demo,demo有变化

7

就是按照demo里面做的之前1.5.9版本都可以升级到了2.1.0 就无法上报handler到了admin,还有没有其他地方需要注意的 这是注册日志 16:36:58.361 logback [Thread-19] INFO c.x.j.c.t.ExecutorRegistryThread - >>>>>>>>>>> xxl-job registry success, registryParam:RegistryParam{registGroup='EXECUTOR', registryKey='cashlending-worker-executor', registryValue='192.168.50.80:9999'}, registryResult:ReturnT [code=200, msg=null, content=null]

8

问题找到了 是没有使用XxlJobSpringExecutor