tomcat服务器启动执行的两个方法 第一 SetApplicationContext(需要继承ApplicationContextAware)重写 第二 ContextInitialize(需要继承servleContet)重写,(contextDestroyed也会重写)