From 7a44c43402b68d18b51a2eb5e6a2458993e1db65 Mon Sep 17 00:00:00 2001 From: ZhouXY108 Date: Fri, 17 Mar 2023 18:44:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=8E=9F=E7=94=9F=20UUID?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/xyz/zhouxy/plusone/domain/DomainEvent.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plusone-basic/plusone-basic-domain/src/main/java/xyz/zhouxy/plusone/domain/DomainEvent.java b/plusone-basic/plusone-basic-domain/src/main/java/xyz/zhouxy/plusone/domain/DomainEvent.java index 34acdda..3cbb914 100644 --- a/plusone-basic/plusone-basic-domain/src/main/java/xyz/zhouxy/plusone/domain/DomainEvent.java +++ b/plusone-basic/plusone-basic-domain/src/main/java/xyz/zhouxy/plusone/domain/DomainEvent.java @@ -1,6 +1,7 @@ package xyz.zhouxy.plusone.domain; -import cn.hutool.core.lang.UUID; +import java.util.UUID; + import lombok.Getter; /** @@ -20,7 +21,7 @@ public abstract class DomainEvent { private long happenedAt; protected DomainEvent() { - this.identifier = UUID.randomUUID().toString(true); + this.identifier = UUID.randomUUID().toString(); this.happenedAt = System.currentTimeMillis(); } }