11.2.5 Events from Spring - Reference Documentation
Authors: Graeme Rocher, Peter Ledbrook, Marc Palmer, Jeff Brown, Luke Daley, Burt Beckwith, Lari Hotari
Version: 3.1.6
11.2.5 Events from Spring
Spring also fires a number of useful events. All events in theorg.springframework
package are prefixed with spring:
.For example:import org.springframework.web.context.support.* import org.springframework.boot.context.event.* ...on("spring:applicationStarted") { ApplicationStartedEvent event -> // fired when the application starts }on("spring:servletRequestHandled") { RequestHandledEvent event -> // fired each time a request is handled }