|
@@ -0,0 +1,16 @@
|
|
|
|
+package com.ruoyi.Common;
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * @author jiangxin
|
|
|
|
+ * @create 2022-01-19-16:40
|
|
|
|
+ */
|
|
|
|
+public class osSelect {
|
|
|
|
+
|
|
|
|
+ public static boolean isLinux() {
|
|
|
|
+ return System.getProperty("os.name").toLowerCase().contains("linux");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public static boolean isWindows() {
|
|
|
|
+ return System.getProperty("os.name").toLowerCase().contains("windows");
|
|
|
|
+ }
|
|
|
|
+}
|