Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

spring boot init method

@EventListener(ApplicationReadyEvent.class)
public void doSomethingAfterStartup() {
    System.out.println("hello world, I have just started up");
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #spring #boot #init #method
ADD COMMENT
Topic
Name
4+5 =