转载请注明出处: http://qiudeqing.com/java_web/2016/09/29/java-web-application.html

http://www.journaldev.com/1945/servletcontextlistener-servlet-listener-example