Hook for my Vaadin web app starting and stopping?
问题 How do I know when my Vaadin 7 web app first starting/launching, so I can do some initial set-up work? Likewise, how do I know when my web app is ending, getting shutdown/exiting? 回答1: ServletContextListener Vaadin is built on top of Java Servlet technology. A “context” is the technical term for your web app in Servlet terms. So the answer here is not Vaadin-specific, it applies to any Servlet -- and at the end of the day, Vaadin is just one big Servlet. Since Servlet spec version 2.3, a