From 002db63e436b3eed5d285fb907d7b2506b704466 Mon Sep 17 00:00:00 2001 From: Hyomin Koo Date: Sat, 28 Sep 2024 17:01:58 +0900 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20UUID=EB=A5=BC=20Controller=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=EB=B0=9B=EC=9D=84=20=EC=88=98=20=EC=9E=88=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20`StringToUUIDConverter`=20=EC=9E=91=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/converter/StringToUUIDConverter.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/main/java/dev/gooiman/server/common/converter/StringToUUIDConverter.java diff --git a/src/main/java/dev/gooiman/server/common/converter/StringToUUIDConverter.java b/src/main/java/dev/gooiman/server/common/converter/StringToUUIDConverter.java new file mode 100644 index 0000000..370c95f --- /dev/null +++ b/src/main/java/dev/gooiman/server/common/converter/StringToUUIDConverter.java @@ -0,0 +1,15 @@ +package dev.gooiman.server.common.converter; + +import java.util.UUID; +import org.springframework.core.convert.converter.Converter; +import org.springframework.stereotype.Component; + +@Component +public class StringToUUIDConverter implements + Converter { + @Override + public UUID convert(String source) { + return UUID.fromString(source); + } + +} From 4f434933900dd23dca8750c182c87654af0084da Mon Sep 17 00:00:00 2001 From: Hyomin Koo Date: Sat, 28 Sep 2024 17:04:30 +0900 Subject: [PATCH 2/2] =?UTF-8?q?refactor:=20=EC=BB=A8=EB=B2=84=ED=84=B0=20?= =?UTF-8?q?=EC=9C=84=EC=B9=98=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{common => config/web}/converter/StringToUUIDConverter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename src/main/java/dev/gooiman/server/{common => config/web}/converter/StringToUUIDConverter.java (86%) diff --git a/src/main/java/dev/gooiman/server/common/converter/StringToUUIDConverter.java b/src/main/java/dev/gooiman/server/config/web/converter/StringToUUIDConverter.java similarity index 86% rename from src/main/java/dev/gooiman/server/common/converter/StringToUUIDConverter.java rename to src/main/java/dev/gooiman/server/config/web/converter/StringToUUIDConverter.java index 370c95f..c5feabd 100644 --- a/src/main/java/dev/gooiman/server/common/converter/StringToUUIDConverter.java +++ b/src/main/java/dev/gooiman/server/config/web/converter/StringToUUIDConverter.java @@ -1,4 +1,4 @@ -package dev.gooiman.server.common.converter; +package dev.gooiman.server.config.web.converter; import java.util.UUID; import org.springframework.core.convert.converter.Converter;