摘要:String className = "java.lang.ApplicationShutdownHooks"; Class clazz = Class.forName(className); Field field = clazz.getDeclaredField("hooks"); field.setAccessible(true); Thread shutdownThread = new... 阅读全文
posted @ 2018-03-15 13:50 胡峻峥 阅读(543) 评论(0) 推荐(0) 编辑