src/main/java/com/moon/server/helper/WebHelper.java
@@ -34,6 +34,15 @@ private final static Log log = LogFactory.getLog(WebHelper.class); /** * 保留小数位 */ public static double round(double val, double size) { double power = Math.pow(10.0, size); return Math.round(val * power) / power; } /** * 获取GUID */ public static String getGuid() { @@ -360,7 +369,8 @@ */ public static void exec(String cmd) { try { Runtime.getRuntime().exec(cmd); Process process = Runtime.getRuntime().exec(cmd); process.waitFor(); } catch (Exception ex) { log.error(ex.getMessage(), ex); }