/** * 判断是否是idea里面启动 * @return true:是 false:否 */ private static boolean checkRunInIDEA() { try { Class.forName("com.intellij.rt.execution.application.AppMainV2"); return true; } catch (ClassNotFoundException ignored) { return false; } }
标签:return,IDEA,是否是,false,true,JAVA From: https://www.cnblogs.com/pxblog/p/17509903.html