If you do significant work within a listener for a this will slow down you startup time.

    The following example defines a ApplicationEventListener that listens for :

    Listening for Server Startup Events

    Alternatively, you can also use the @EventListener annotation on a method of any existing bean that accepts :

    1. import io.micronaut.runtime.server.event.*;
    2. import io.micronaut.runtime.event.annotation.*;
    3. public class MyBean {
    4. @EventListener
    5. // logic here
    6. ...
    7. }