title: Spring @EnableScheduling and @Schedule annotation don't work
body: <p>I have made a class with a method inside which should run every 5 seconds. They look like this:</p>
  
  <pre><code>@Configuration
  @EnableScheduling
  public class MyClass {
      @Scheduled(fixedRate = 5000)
      public void myMethod() {
          logger.info("hi");
      }
  }
  </code></pre>
  
  <p>The problem is that it is called only once at the beginning and never again.</p>