title: Usage of @Scheduled in spring
body: <p>I have a component class</p>
  
  <pre><code>@Component
  public class Scheduler
  {
       @Scheduled(fixedRate = 5000 )
       public void test()
       {
          System.out.println("Hi");
       }
  }
  </code></pre>
  
  <p>But "Hi" is not being printed every 5 seconds. Why?</p>
  
  <p>My Confuration class is</p>
  
  <pre><code>@ComponentScan( excludeFilters = { @ComponentScan.Filter( type = FilterType.ASSIGNABLE_TYPE ) } )
  @EnableScheduling
  @SpringBootApplication
  public class Application 
  {
      public static void main( final String[] args )
      {
          LOG.debug("Booting Spring Application ...... ");
          SpringApplication.run(Application.class, args);
      }
  }
  </code></pre>