瀏覽代碼

代码调整

baolei 7 月之前
父節點
當前提交
e45c7e28d2

+ 1 - 10
08.src/Xingxi/xingxi-admin/src/main/java/com/xingxi/XingxiApplication.java

@@ -14,15 +14,6 @@ public class XingxiApplication {
     public static void main(String[] args) {
         // System.setProperty("spring.devtools.restart.enabled", "false");
         SpringApplication.run(XingxiApplication.class, args);
-        System.out.println("(♥◠‿◠)ノ゙  若依启动成功   ლ(´ڡ`ლ)゙  \n" +
-                " .-------.       ____     __        \n" +
-                " |  _ _   \\      \\   \\   /  /    \n" +
-                " | ( ' )  |       \\  _. /  '       \n" +
-                " |(_ o _) /        _( )_ .'         \n" +
-                " | (_,_).' __  ___(_ o _)'          \n" +
-                " |  |\\ \\  |  ||   |(_,_)'         \n" +
-                " |  | \\ `'   /|   `-'  /           \n" +
-                " |  |  \\    /  \\      /           \n" +
-                " ''-'   `'-'    `-..-'              ");
+
     }
 }

+ 8 - 0
08.src/Xingxi/xingxi-common/src/main/java/com/xingxi/common/utils/uuid/IdUtils.java

@@ -1,5 +1,7 @@
 package com.xingxi.common.utils.uuid;
 
+import com.xingxi.common.utils.DateUtils;
+
 /**
  * ID生成器工具类
  * 
@@ -7,6 +9,8 @@ package com.xingxi.common.utils.uuid;
  */
 public class IdUtils
 {
+    private static IdWorker idWorker;
+
     /**
      * 获取随机UUID
      * 
@@ -46,4 +50,8 @@ public class IdUtils
     {
         return UUID.fastUUID().toString(true);
     }
+
+    public static String snowFlake() {
+        return DateUtils.dateTime() + idWorker.nextId();
+    }
 }