Quartz dynamically creates a job. The job contains initialization parameters. An error is reported when executing the job. How to solve it

CSDN Q & A 2022-06-24 10:06:09 阅读数:243

quartzdynamicallycreatesjob.job
 Quartz Timing task , I want to do distributed scheduled tasks , Dynamically create ,JobDetail, At the time of creation 

Found an error , Because I have to JobDetail in , There's a way to structure , It needs to pass in Ip, It's equivalent to me for each Ip I need to create one of them
Job, And this Ip Is dynamic , Need to manage... In the database , When there is a new IP Add in , You need to add a new one Job, That's why we need to give Job Add parameters , however
Added parameters , In execution job When , Just report a mistake , Prompt what you need init Method , How to get ?

版权声明:本文为[CSDN Q & A]所创,转载请带上原文链接,感谢。 https://primo.wiki/2022/175/202206171826515389.html