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


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.

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