title: Use .yml variable into @Scheduled(cron = variable)
body: <p>I got a groovy class </p>
  
  <pre><code>@Configuration
  class SchedulerTest {
  
      SomeService service
  
  
      @Inject
      SchedulerTest (SomeService service) {
          this.service = service
      }
  
  
      @Scheduled(cron = '0/5 * * * * *')
      void doSomething() {
          service.someMethod()   
      }
  }
  </code></pre>
  
  <p>and got a .yml file</p>
  
  <pre><code>scheduler:
      cron: 0/5 * * * * *
  </code></pre>
  
  <p>I want to use the .yml variable to the cron value into @Scheduled, like </p>
  
  <p><code>@Scheduled(cron = schdulers.cron)</code></p>
  
  <p>How can I make this work?</p>
  
  <p>Obs. I`m very new in development.</p>