/** * get running environment * * @return */ public static RunningMode getRunningMode() { return RunningMode.fromValue(appConfigs.getString("running.mode")); }
/** * get maven build time as the version number * * @return build timestamp */ public static String getBuildVersion() { return appConfigs.getString("build.version"); }
/** * The program running environment is product environment ? * * @return */ public static boolean isProduct() { String mode = appConfigs.getString("running.mode"); if (mode.equals("product")) return true; else return false; }