tomcat启动|退出执行事件类:importjava.io.File;importjava.io.FileWriter;importjava.io.IOException;importjavax.servlet.ServletContextEvent;importjavax.servlet.ServletContextListener;importjavax.servlet.http.HttpServlet;publicclassTestextendsHttpServletimplementsServletContextListener{//服务器停止时执行该事件publicvoidcontextDe