public class OsUtils {
/**
* 判断当前系统是否是Windows
* 是返回true
* @return
*/
public static boolean isWindows() {
return System.getProperties().getProperty("os.name").toUpperCase().indexOf("WINDOWS") != -1;
}
public static boolean isNotWindows() {
return !isWindows();
}
}