function call after the deployement of the app
I wanna know if there is a function that is called directly after the deployment of the server. This functions co开发者_如何学运维uld be called as an initialisation function of the deployment. Thanks
If this is for a single app, you can implement a ServletContextListener
, listening on the contextInitialized()
event. You can register an implementation through the <listener>
tag in your web.xml.
精彩评论