public static boolean isLinux() {
return System.getProperty("os.name").toLowerCase().indexOf("linux") >= 0;
}
public static boolean isWindows() {
return System.getProperty("os.name").toLowerCase().indexOf("windows") >= 0;
}
后端判断服务是linux还是windows
最新推荐文章于 2024-05-11 10:24:57 发布