摘要: 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 hjzqyx 阅读(1152) 评论(0) 推荐(0) 编辑