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
Post a Comment