Created
November 1, 2021 14:29
-
-
Save jeffscottbrown/b24a7cbdb0ceb0e53b29c988cdc36940 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.micronaut.runtime.event.annotation.EventListener; | |
import io.micronaut.runtime.server.event.ServerStartupEvent; | |
import javax.inject.Singleton; | |
@Singleton | |
public class MyBean { | |
@EventListener | |
public void onStartup(ServerStartupEvent event) { | |
// logic here | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment