Running code after Spring Boot starts
@EventListener(ApplicationReadyEvent.class)
public void doSomethingAfterStartup() {
System.out.println("hello world, I have just started up");
}来源:https://stackoverflow.com/questions/27405713/running-code-after-spring-boot-starts
评论已关闭