Class MGL_IDUtils

java.lang.Object
tech.mgl.core.utils.MGL_IDUtils

public class MGL_IDUtils extends Object
Author:
Hotpot
  • Constructor Details

    • MGL_IDUtils

      public MGL_IDUtils()
  • Method Details

    • setDefaultSnowIdProperties

      public static void setDefaultSnowIdProperties(long workerId, long dataCenterId, long startTime)
    • nextId

      public static Serializable nextId()
    • generateStringId

      public static Serializable generateStringId()
      生成编码 推荐ID之用

      Returns:
      : Serializable

    • generateCode

      public static Serializable generateCode()
      18位字符数字组合的编码生成

      Returns:
      : Serializable

    • main

      public static void main(String[] args)
    • testCode

      public void testCode() throws IOException
      Throws:
      IOException
    • testUUID

      public void testUUID()