java - How can I catch " - Started abcApplication in 12.49 seconds " event? -


language:java, framework:springboot, application-name:abcapplication "21:47:32.133 [main] info c.c.abc.abcapplication - started abcapplication in 12.49 seconds (jvm running 8.467)"

i developing web application springboot. springboot-application outputs above message when application starts successfully. how can handle event? when application's initialization completed.

what looking contextrefreshedevent, can create class , make component , implement applicationlistener

@component public class serverreadyclass implements  applicationlistener<contextrefreshedevent> {      @override     public void onapplicationevent(contextrefreshedevent event) {         //your logic     } } 

Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -