11.2.5 Events from Spring 3.1.7

See the light - agile, industrial strength, rapid web application development made easy

(Quick Reference) # 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.7 ## 11.2.5 Events from Spring Spring also fires a number of useful events. All events in the `org.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
    }
| Quick Reference (hide)