服务器应用 Tomcat 启动两次的问题(ServletContextListener的contextInitialized被执行两次的问题) 有些人会遇到自己写了个监听器,继承了 ServletContextListener,在 Tomcat 等服务器…