Any class that inherits the servletContextListener interface
Call its ContextInitialized method when the web container starts to initialize
The method of calling its contedentroyed when the container is turned off.
If there is a system variable or parameter, it is destroyed when it is loaded while the web container is started, it is a good method.
The configuration in Web.xml is as follows
com.mitac.mismlinux.util.systemmonitordaemon listener-class>
listener>