xxl-job Executor配置文件提示不完整导致配置存在问题

plicqrtu  于 2021-11-29  发布在  Java
关注(0)|答案(0)|浏览(178)

Please answer some questions before submitting your issue. Thanks!

Which version of XXL-JOB do you using?

2.3.0

Expected behavior

配置Executor配置文件中的xxl.job.executor.address属性后,能直接通过调度中心进行调度任务

Actual behavior

demoJobHandler一直调度失败,查看源码发现,com.xxl.job.core.executor.XxlJobExecutor#initEmbedServer 方法中,取了 xxl.job.executor.address 的值,但是最后在 com.xxl.job.core.server.EmbedServer#start 方法中绑定任务端口时,使用的是 xxl.job.executor.port 属性的值

Steps to reproduce the behavior

1、配置了 xxl.job.executor.address 属性为 http://127.0.0.1:8082
2、未修改 xxl.job.executor.port 属性的默认值 9999
3、启动 Executor,通过调度中心启动 demoJobHandler 任务,提示失败

Other information

考虑通过修改 com.xxl.job.core.executor.XxlJobExecutor#initEmbedServer 代码或者修改 Executor 的 application.propertiesxxl.job.executor.addressxxl.job.executor.port 属性的填写提示

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题