java - application_start Event to pre-load objects in spring mvc? -


There is an event in spring (spring MVC) which becomes bar once, on the application startup, where I hook inside Can I load something and objects?

You can not use the normal initialization mechanism of a singleton bean, e.g. ? A singleton bean will be created / started only once on the reference startup.

Alternatively, you can apply it, which takes a callback from the spring, when the context starts itself or closes itself to the bean. / P>


Comments