From e10869ca303d5c1355b34d4f6bd29fc2fce171a9 Mon Sep 17 00:00:00 2001 From: hyun123 Date: Mon, 30 Sep 2024 17:00:01 +0900 Subject: [PATCH] update software catalog~ --- .../kr/co/mcmp/ape/controller/AppProvEngineController.java | 5 +++++ src/main/java/kr/co/mcmp/util/FileUtils.java | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/kr/co/mcmp/ape/controller/AppProvEngineController.java b/src/main/java/kr/co/mcmp/ape/controller/AppProvEngineController.java index c72e746..01aac02 100644 --- a/src/main/java/kr/co/mcmp/ape/controller/AppProvEngineController.java +++ b/src/main/java/kr/co/mcmp/ape/controller/AppProvEngineController.java @@ -98,5 +98,10 @@ public List getMCISByNamespace(@Parameter(description = "네임스페이 return null; } + @GetMapping("/readyz") + @Operation(summary="", description="") + public boolean checkReadyz(){ + return true; + } } diff --git a/src/main/java/kr/co/mcmp/util/FileUtils.java b/src/main/java/kr/co/mcmp/util/FileUtils.java index d84429a..5a7ff01 100644 --- a/src/main/java/kr/co/mcmp/util/FileUtils.java +++ b/src/main/java/kr/co/mcmp/util/FileUtils.java @@ -23,7 +23,9 @@ @Slf4j public class FileUtils { - private static final String ICON_UPLOAD_DIR = "src/main/resources/static/images/"; + + private static String projectRoot = System.getProperty("user.dir"); + private static String ICON_UPLOAD_DIR = Paths.get(projectRoot, "src", "main", "resources", "static", "images").toString(); public static String readLine(InputStream is) throws IOException { StringBuffer out = new StringBuffer();