JVM关闭,调用方法 JVM正常关闭可以触发,但kill -9不会调用此方法 Runtime.getRuntime().addShutdownHook(new Thread(){ @Override public void run()