국유인 연동 url 수정

This commit is contained in:
2026-02-27 16:01:05 +09:00
parent 5d0590bd3c
commit cc46315e3a
4 changed files with 9 additions and 4 deletions

View File

@@ -24,10 +24,12 @@ public class FileProperties {
private String ptPath; private String ptPath;
private String datasetResponse; private String datasetResponse;
private TrainingData trainingData; private TrainingData trainingData;
private String outputDir;
@Getter @Getter
@Setter @Setter
public static class TrainingData { public static class TrainingData {
private String geojsonDir; private String geojsonDir;
} }
} }

View File

@@ -91,6 +91,7 @@ public class StartupLogger {
│ Dataset Dir : %s │ Dataset Dir : %s
│ Model Dir : %s │ Model Dir : %s
│ PT Path : %s │ PT Path : %s
│ Output Dir : %s
╠════════════════════════════════════════════════════════════════════════════════╣ ╠════════════════════════════════════════════════════════════════════════════════╣
║ INFERENCE CONFIGURATION ║ ║ INFERENCE CONFIGURATION ║
╠────────────────────────────────────────────────────────────────────────────────╣ ╠────────────────────────────────────────────────────────────────────────────────╣
@@ -118,6 +119,7 @@ public class StartupLogger {
fileProperties.getDatasetDir() != null ? fileProperties.getDatasetDir() : "N/A", fileProperties.getDatasetDir() != null ? fileProperties.getDatasetDir() : "N/A",
fileProperties.getModelDir() != null ? fileProperties.getModelDir() : "N/A", fileProperties.getModelDir() != null ? fileProperties.getModelDir() : "N/A",
fileProperties.getPtPath() != null ? fileProperties.getPtPath() : "N/A", fileProperties.getPtPath() != null ? fileProperties.getPtPath() : "N/A",
fileProperties.getOutputDir() != null ? fileProperties.getOutputDir() : "N/A",
inferenceProperties.getNfs() != null ? inferenceProperties.getNfs() : "N/A", inferenceProperties.getNfs() != null ? inferenceProperties.getNfs() : "N/A",
inferenceProperties.getUrl() != null ? inferenceProperties.getUrl() : "N/A", inferenceProperties.getUrl() != null ? inferenceProperties.getUrl() : "N/A",
inferenceProperties.getBatchUrl() != null ? inferenceProperties.getBatchUrl() : "N/A", inferenceProperties.getBatchUrl() != null ? inferenceProperties.getBatchUrl() : "N/A",

View File

@@ -69,7 +69,7 @@ public class GukYuinApiService {
@Value("${file.nfs}") @Value("${file.nfs}")
private String nfs; private String nfs;
@Value("${inference.output-dir}") @Value("${file.output-dir}")
private String outputDir; private String outputDir;
@Transactional @Transactional
@@ -459,8 +459,7 @@ public class GukYuinApiService {
// 추론 shp 파일 생성되는 위치 // 추론 shp 파일 생성되는 위치
String kamconfsDatasetExportPathfsDatasetExportPath = outputDir; String kamconfsDatasetExportPathfsDatasetExportPath = outputDir;
log.info("outputDir path : " + kamconfsDatasetExportPathfsDatasetExportPath); log.info("outputDir path : " + kamconfsDatasetExportPathfsDatasetExportPath);
if (!Files.isDirectory( if (!Files.isDirectory(Path.of(kamconfsDatasetExportPathfsDatasetExportPath + info.getUid()))) {
Path.of(kamconfsDatasetExportPathfsDatasetExportPath + "/" + info.getUid()))) {
return new ResponseObj( return new ResponseObj(
ApiResponseCode.NOT_FOUND_DATA, "파일 경로에 회차 실행 파일이 생성되지 않았습니다. 확인 부탁드립니다."); ApiResponseCode.NOT_FOUND_DATA, "파일 경로에 회차 실행 파일이 생성되지 않았습니다. 확인 부탁드립니다.");
} }
@@ -475,7 +474,7 @@ public class GukYuinApiService {
reqDto.setCrtrYr(String.valueOf(info.getTargetYyyy())); reqDto.setCrtrYr(String.valueOf(info.getTargetYyyy()));
reqDto.setChnDtctSno(String.valueOf(maxStage + 1)); reqDto.setChnDtctSno(String.valueOf(maxStage + 1));
reqDto.setChnDtctId(info.getUid()); reqDto.setChnDtctId(info.getUid());
reqDto.setPathNm(kamconfsDatasetExportPathfsDatasetExportPath + "/" + info.getUid()); reqDto.setPathNm(kamconfsDatasetExportPathfsDatasetExportPath + info.getUid());
// 1회차를 종료 상태로 처리하고 2회차를 보내야 함 // 1회차를 종료 상태로 처리하고 2회차를 보내야 함
// 추론(learn), 학습데이터(inference) 둘 다 종료 처리 // 추론(learn), 학습데이터(inference) 둘 다 종료 처리

View File

@@ -82,6 +82,8 @@ file:
dataset-response: ${file.nfs}/dataset/response/ dataset-response: ${file.nfs}/dataset/response/
training-data: training-data:
geojson-dir: ${file.nfs}/dataset/request/ geojson-dir: ${file.nfs}/dataset/request/
output-dir: ${file.nfs}/dataset/export/ # 마운트 경로 : 국유인 연계 등록할 추론 shp 파일
inference: inference:
nfs: /kamco-nfs nfs: /kamco-nfs
geojson-dir: ${inference.nfs}/requests/ # 추론실행을 위한 파일생성경로 geojson-dir: ${inference.nfs}/requests/ # 추론실행을 위한 파일생성경로