Sto studiando il framework Spring, in web.xml ho aggiunto il seguente che è un listener bootstrap. Qualcuno può darmi un'idea corretta di cosa sia un listener di bootstrap?
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
Puoi vedere il documento qui: ContextLoadListener
Bootstrap listener to start up and shut down Spring's root WebApplicationContext. Simply delegates to
ContextLoaderas well as toContextCleanupListener.This listener should be registered after
Log4jConfigListenerin web.xml, if the latter is used.As of Spring 3.1,
ContextLoaderListenersupports injecting the root web application context via theContextLoaderListener(WebApplicationContext)constructor, allowing for programmatic configuration in Servlet 3.0+ environments. See WebApplicationInitializer for usage examples...