almost 2 years ago
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;

@Component
public class ApplicationStartup implements ApplicationListener<ContextRefreshedEvent>{

    @Override
    public void onApplicationEvent(ContextRefreshedEvent event) {
        System.out.println("Spring Boot Startup");
    }
}
← 讀取CSV檔的方法 使用Vagrant跟Docker快速建構開發與測試環境 →
 
comments powered by Disqus