ContextStartedEvent not broadcasted on Spring Boot
<p>I'm migrating application to Spring boot. My application listen on <code>ContextStartedEvent</code> but it looks that Spring boot does not emit such event. I can change my application and listen on <code>ApplicationReadyEvent</code>, but according to <a href="http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#boot-features-application-events-and-listeners" rel="nofollow">spring boot doc</a>, "old" events are still emitted.</p>

<p>I would like to keep my code unchanged as much as possible.</p>

<p>Question: Is ContextStartedEvent supported by Spring Boot or not?</p>

<p>Demo:</p>

<pre><code>@EnableAutoConfiguration
public class EventExample {

    @EventListener(classes = ContextStartedEvent.class)
    void start() { System.out.println("Listen ContextStartedEvent");} //not called

    @EventListener(classes = ApplicationReadyEvent.class) 
    void start2(){System.out.println("Listen ApplicationReadyEvent");} //called

    public static void main(String[] args) throws Exception {
        SpringApplication.run(EventExample.class, args);
    }
}
</code></pre>

<p>Output</p>

<blockquote>
  <p>Listen ApplicationReadyEvent</p>
</blockquote>