리드미 수정

This commit is contained in:
주수현
2025-07-30 10:44:54 +09:00
parent 6a167795c3
commit 6d208e0e74
4 changed files with 10 additions and 51 deletions

View File

@@ -2,8 +2,8 @@
## 📌 프로젝트 개요
**KOREA-RESEARCH**는 **헥사고날 아키텍처(Ports & Adapters)** 기반의 Spring Boot 멀티모듈 시스템입니다.
도메인 로직과 외부 의존성을 명확히 분리하여 **유지보수성과 확장성**을 극대화하였습니다.
**KOREA-RESEARCH**는 임가 패널의 일계부 수집 및 관리를 위한 시스템입니다.
이 시스템은 헥사고날 아키텍처(Ports & Adapters) 패턴을 적용한 Spring Boot 기반의 멀티모듈 프레임워크를 기반으로 하여 작성 되었습니다.
---
@@ -25,7 +25,7 @@
```
> 모든 애플리케이션은 `core` 모듈을 중심으로 유즈케이스, 포트, 어댑터 구조로 구성됩니다.
> 모든 애플리케이션은 `core` 모듈을 중심으로 포트, 어댑터 구조로 구성됩니다.
### 📦 헥사고날 구조 예시
@@ -66,7 +66,7 @@ usecase/
## 💻 로컬 구동 시 필수 설정
로컬 환경에서 구동 시 아래 JVM 옵션들을 환경에 맞게 설정해 주세요:
로컬 환경에서 구동 시 아래 JVM 옵션들을 환경에 맞게 설정해 주세요
```bash
-Dspring.profiles.active=local
@@ -76,7 +76,6 @@ usecase/
-Djasypt.encryptor.algorithm=PBEWITHHMACSHA512ANDAES_256
```
> 💡 `-Djasypt.encryptor.password`와 `-Djasypt.encryptor.algorithm`는 환경에 따라 **수정 가능**합니다.
---
@@ -281,8 +280,8 @@ $ mvn clean package -P war
## 🧾 운영서버 임가 계정 목록
| 가구번호 | 비밀번호 |
| ------- | ------ |
| 임가번호 | 비밀번호 |
|---------| ------ |
| `22221` | `1111` |
| `22222` | `1111` |

View File

@@ -337,7 +337,6 @@
h.is_panel AS isPanel,
r.researcher_name AS researcherName
FROM v_household_with_code h
LEFT JOIN v_household_visit v ON h.seq = v.household_seq
LEFT JOIN v_household_researcher r ON h.seq = r.household_seq
) AS hvr
<where>
@@ -386,10 +385,10 @@
/* 맵핑 여부 */
<choose>
<when test="cmd.isMapping">
AND r.researcher_name is not null
AND hvr.researcher_name is not null
</when>
<when test="!cmd.isMapping">
AND r.researcher_name is null
AND hvr.researcher_name is null
</when>
</choose>
</if>

View File

@@ -5,8 +5,9 @@ export CATALINA_OPTS="$CATALINA_OPTS \
-Dlogging.level.org.springframework.security=DEBUG \
-Dfile.encoding=UTF-8 \
-Djava.net.preferIPv4Stack=true \
-Daes.secret-key=092HW829O0A0AVR0 \
-Dpath.upload.storage=LOCAL \
-Dpath.upload.public=/home/etribe/data/upload \
-Dpath.upload.tmpdir=/home/etribe/data/upload/tmp \
-Daes.secret-key=092HW829O0A0AVR0 \
-Djasypt.encryptor.password=ko-research \
-Djasypt.encryptor.algorithm=PBEWITHHMACSHA512ANDAES_256"

View File

@@ -1,40 +0,0 @@
package app.module.front.usecase.editor.adapters.web;
import app.module.core.config.application.enums.FileStorageType;
import app.module.core.config.application.enums.FileUploadType;
import app.module.core.usecase.file.saveToStorage.ports.SaveToStoragePortIn;
import app.module.core.usecase.file.saveToStorage.ports.application.domain.SaveToStorage;
import app.module.core.usecase.file.url.application.port.in.FileUrlPortIn;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.multipart.MultipartFile;
import java.io.IOException;
@Controller
@RequiredArgsConstructor
public class EditorImageUploadController {
private final SaveToStoragePortIn saveToStoragePortIn;
private final FileUrlPortIn fileUrlPortIn;
@Value("${path.upload.storage}")
private String uploadStorageType;
@PostMapping(path = "/api/front/editorImage/upload")
ResponseEntity<?> editorImageUpload(MultipartFile editorImage) throws IOException {
SaveToStorage saveToStorage =
saveToStoragePortIn.operate(FileUploadType.EDITOR_IMAGE, editorImage).orElseThrow();
return ResponseEntity.status(HttpStatus.OK)
.body(
fileUrlPortIn.getInline(
FileStorageType.valueOf(uploadStorageType),
saveToStorage.getPath(),
saveToStorage.getName()));
}
}