[Solved] when tomecat server run , then my java class run [closed]

[ad_1]

you need to register your class as a listener, make your class implements ServletContextListener and register it in web.xml and restart your tomcat

you can find a lot of tutorials online that shows you the details of this.

[ad_2]

solved when tomecat server run , then my java class run [closed]