开发者

function call after the deployement of the app

开发者 https://www.devze.com 2023-01-13 22:02 出处:网络
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. ThanksI

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消