Skip to content

Commit

Permalink
Merge pull request #8 from gooiman/feat/uuid-converter
Browse files Browse the repository at this point in the history
[feat] Controller 등에서 UUID를 받을 수 있도록 `StringToUUIDConverter` 작성
  • Loading branch information
EATSTEAK authored Sep 28, 2024
2 parents 079bd04 + 4f43493 commit 3d02007
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package dev.gooiman.server.config.web.converter;

import java.util.UUID;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;

@Component
public class StringToUUIDConverter implements
Converter<String, UUID> {
@Override
public UUID convert(String source) {
return UUID.fromString(source);
}

}

0 comments on commit 3d02007

Please sign in to comment.