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();