/** * */ package cn.com.lzt.common.util; /** * @author xzx * * 2019年6月25日 * */ public class SystemUtils { /** * 通过操作系统判断是否为调试环境 * @return */ public static boolean isDebugEnvirementByOS() { String os = System.getProperty("os.name"); if(os.toLowerCase().startsWith("win") || os.toLowerCase().startsWith("mac")){ System.out.println("=========判断为非生产环境==========="); return true; } return false; } }