Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I turn off quartz scheduler with a property setting?

We disable the quartz scheduler locally by commenting out the scheduler factory bean in the jobs.xml file.

Is there a setting for doing something similar in the quartz.properties file?

like image 688
blank Avatar asked Oct 19 '11 09:10

blank


1 Answers

The simplest way I've found in a spring boot context for tests is to simply:

@MockBean
Scheduler scheduler;
like image 120
Jason Avatar answered Nov 15 '22 22:11

Jason