title: spring boot - disable quartz scheduler
body: <p>I need to be able to set up quartz to run depending on the profile. I am using an integration test to make sure that each profile is getting the scheduler started (or not), but I am checking a profile that doesn't have it enabled and this check is failing:</p>
  <pre><code>assertFalse(scheduler.isStarted());
  </code></pre>
  <p>This is what I have used for this profile in <code>application.yaml</code>:</p>
  <pre><code>spring:
    quartz:
      enabled: false
  </code></pre>
  <p>Also tried:</p>
  <pre><code>spring:
    quartz:
      properties:
        enabled: false
  </code></pre>
  <p>Any ideas how to get quartz to not start at all?</p>
  <p>As a workaround, is it possible to set up a dummy scheduler on the profile so that <em>the real quartz</em> is skipped altogether?</p>
  <p>PS I have noticed this, but I'd like to keep it in application.yaml if at all possible: <a href="https://stackoverflow.com/questions/48808664/how-to-disable-quartz-scheduler-for-dev-and-stg-environment">How to disable Quartz scheduler for dev and stg environment</a></p>