From 5d2a0bf4ccf87a47ed12a916321d79e1de7baa31 Mon Sep 17 00:00:00 2001 From: pbccc Date: Fri, 23 Aug 2024 13:27:32 +0900 Subject: [PATCH] test --- Dockerfile | 2 +- src/main/java/kr/co/mcmp/api/response/ResponseCode.java | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index ffe2f6a..48c8bec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,3 @@ -FROM openjdk:17-slim +FROM openjdk:17-slim AS prod COPY ./build/libs/am.jar am.jar ENTRYPOINT ["java", "-jar","am.jar"] diff --git a/src/main/java/kr/co/mcmp/api/response/ResponseCode.java b/src/main/java/kr/co/mcmp/api/response/ResponseCode.java index 1e62d67..2c7037a 100644 --- a/src/main/java/kr/co/mcmp/api/response/ResponseCode.java +++ b/src/main/java/kr/co/mcmp/api/response/ResponseCode.java @@ -67,8 +67,6 @@ public enum ResponseCode { Stream.of(values()).collect(Collectors.toMap(ResponseCode::getCode, e -> e)); public static ResponseCode findByCode(int code) { - //test - //return Optional.ofNullable(map.get(code)).orElseThrow(() -> new McmpException(ResponseCode.UNKNOWN_ERROR)); - return null; + return Optional.ofNullable(map.get(code)).orElseThrow(() -> new McmpException(String.valueOf(ResponseCode.UNKNOWN_ERROR))); } }