public static boolean isOSLinux() {
Properties prop = System.getProperties();
String os = prop.getProperty("os.name");
if (os != null && os.toLowerCase().indexOf("linux") > -1) {
return true;
} else {
return false;
}
}
java判断当前系统是linux还是windows
最新推荐文章于 2023-05-17 18:45:53 发布