I read Spring Download Link (version 1.2.3-RELEASE) and in clause 22.4. Application events and listener states at point 4:
"ApplicationReadyEvent is dispatched after the update, and any associated callbacks have been processed to indicate that the application is ready to serve requests."
So I tried:
SpringApplication app = new SpringApplication(LearnSpringBootApplication.class); app.addListeners(new ApplicationListener<ApplicationReadyEvent>() {
...
but it cannot find ApplicationReadyEvent. Is it deleted? If so, is there an equivalent for it?
I found this post here:
Spring Download - Wait for the web server to start
but it was interesting, is there any other way?
source share