Skip to content

πŸ›  Refactor : λͺ¨λ“ˆλŸ¬ λͺ¨λ†€λ¦¬μŠ€ 변경을 μœ„ν•œ λ©€ν‹°λͺ¨λ“ˆ μ„€μ •#264

Merged
tkv00 merged 3 commits into
devfrom
#263/refactor-architecture-restructuring
Jan 5, 2026
Merged

πŸ›  Refactor : λͺ¨λ“ˆλŸ¬ λͺ¨λ†€λ¦¬μŠ€ 변경을 μœ„ν•œ λ©€ν‹°λͺ¨λ“ˆ μ„€μ •#264
tkv00 merged 3 commits into
devfrom
#263/refactor-architecture-restructuring

Conversation

@tkv00
Copy link
Copy Markdown
Contributor

@tkv00 tkv00 commented Jan 5, 2026

πŸ€ 이슈 번호


βœ… μž‘μ—… 사항


⌨ 기타

@tkv00 tkv00 added the ♻️ Refactor κΈ°λŠ₯ λ³€ν™”κ°€ μ•„λ‹Œ μ½”λ“œ λ¦¬νŒ©ν„°λ§ label Jan 5, 2026
@tkv00 tkv00 merged commit 97265fb into dev Jan 5, 2026
@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello @tkv00, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 PR은 ν”„λ‘œμ νŠΈλ₯Ό λͺ¨λ“ˆλŸ¬ λͺ¨λ†€λ¦¬μŠ€ μ•„ν‚€ν…μ²˜λ‘œ λ¦¬νŒ©ν† λ§ν•˜λŠ” 것을 λͺ©ν‘œλ‘œ ν•©λ‹ˆλ‹€. 이λ₯Ό μœ„ν•΄ μ½”λ“œλ² μ΄μŠ€λ₯Ό apps와 domains λͺ¨λ“ˆλ‘œ μž¬κ΅¬μ„±ν•˜κ³ , Gradle λΉŒλ“œ μ‹œμŠ€ν…œμ„ λ©€ν‹°λͺ¨λ“ˆ 지원에 맞게 μ—…λ°μ΄νŠΈν•˜λ©°, Docker ꡬ성을 μ‘°μ •ν•˜μ—¬ μ΄λŸ¬ν•œ ꡬ쑰적 λ³€κ²½ 사항을 λ°˜μ˜ν–ˆμŠ΅λ‹ˆλ‹€. μ΄λŸ¬ν•œ λ³€ν™”λŠ” μ• ν”Œλ¦¬μΌ€μ΄μ…˜μ˜ μœ μ§€λ³΄μˆ˜μ„±, ν™•μž₯μ„± 및 관심사 뢄리λ₯Ό ν–₯μƒμ‹œν‚€λŠ” 데 κΈ°μ—¬ν•  κ²ƒμž…λ‹ˆλ‹€.

Highlights

  • λͺ¨λ“ˆλŸ¬ λͺ¨λ†€λ¦¬μŠ€ ꡬ쑰둜 λ¦¬νŒ©ν† λ§: μ• ν”Œλ¦¬μΌ€μ΄μ…˜μ„ apps (API μ„œλ²„, 배치 μ„œλ²„ λ“± μ‹€ν–‰ κ°€λŠ₯ν•œ μ• ν”Œλ¦¬μΌ€μ΄μ…˜)와 domains (곡유 λΉ„μ¦ˆλ‹ˆμŠ€ 둜직 및 μ—”ν‹°ν‹°)둜 λΆ„λ¦¬ν•˜μ—¬ λͺ¨λ“ˆλŸ¬ λͺ¨λ†€λ¦¬μŠ€ μ•„ν‚€ν…μ²˜λ‘œ μ „ν™˜ν–ˆμŠ΅λ‹ˆλ‹€.
  • Gradle λ©€ν‹°λͺ¨λ“ˆ μ„€μ •: build.gradle 및 settings.gradle νŒŒμΌμ„ μ—…λ°μ΄νŠΈν•˜μ—¬ μƒˆλ‘œμš΄ λ©€ν‹°λͺ¨λ“ˆ ꡬ쑰λ₯Ό μ§€μ›ν•˜λ„λ‘ λ³€κ²½ν–ˆμŠ΅λ‹ˆλ‹€. 각 λͺ¨λ“ˆμ€ 독립적인 λΉŒλ“œ 및 μ˜μ‘΄μ„± 관리가 κ°€λŠ₯ν•©λ‹ˆλ‹€.
  • Docker ν™˜κ²½ ꡬ성 μ—…λ°μ΄νŠΈ: Dockerfileκ³Ό docker-compose.yml을 μˆ˜μ •ν•˜μ—¬ api-server와 batch-serverλ₯Ό λ³„λ„μ˜ μ„œλΉ„μŠ€λ‘œ μ •μ˜ν•˜κ³ , MODULE_NAME 인자λ₯Ό 톡해 각 μ• ν”Œλ¦¬μΌ€μ΄μ…˜μ„ λΉŒλ“œν•˜κ³  μ‹€ν–‰ν•  수 μžˆλ„λ‘ ν–ˆμŠ΅λ‹ˆλ‹€.
  • μ„€μ • 파일 μž¬κ΅¬μ„±: κΈ°μ‘΄ 루트 디렉토리에 있던 .env, application.yml λ“±μ˜ μ„€μ • νŒŒμΌλ“€μ„ 각 apps 및 domains λͺ¨λ“ˆ λ‚΄λΆ€λ‘œ μ΄λ™μ‹œμΌœ λͺ¨λ“ˆμ„±μ„ κ°•ν™”ν•˜κ³  관심사λ₯Ό λͺ…ν™•νžˆ λΆ„λ¦¬ν–ˆμŠ΅λ‹ˆλ‹€.
  • 배치 λͺ¨λ“ˆ μ½”λ“œ 이전: κΈ°μ‘΄ src/main/java에 있던 배치 κ΄€λ ¨ μ½”λ“œ(λž­ν‚Ή 배치 μ„€μ •, DTO, λ¦¬μŠ€λ„ˆ, ν”„λ‘œμ„Έμ„œ, 리더, μœ νš¨μ„± 검사기, 라이터)λ₯Ό apps/batch-server λͺ¨λ“ˆλ‘œ μ΄μ „ν–ˆμŠ΅λ‹ˆλ‹€.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/jacoco.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with πŸ‘ and πŸ‘Ž on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

이 PR은 기쑴의 λͺ¨λ†€λ¦¬μ‹ μ• ν”Œλ¦¬μΌ€μ΄μ…˜μ„ λͺ¨λ“ˆλŸ¬ λͺ¨λ†€λ¦¬μŠ€ ꡬ쑰둜 λ¦¬νŒ©ν„°λ§ν•˜λŠ” μ€‘μš”ν•œ λ³€κ²½ 사항을 λ‹΄κ³  μžˆμŠ΅λ‹ˆλ‹€. ν”„λ‘œμ νŠΈ ꡬ쑰λ₯Ό apps와 domains둜 λ‚˜λˆ„μ–΄ 각 λͺ¨λ“ˆμ˜ μ±…μž„κ³Ό 역할을 λͺ…ν™•νžˆ λΆ„λ¦¬ν•œ 점이 μΈμƒμ μž…λ‹ˆλ‹€. Gradle λΉŒλ“œ μŠ€ν¬λ¦½νŠΈμ™€ Docker 섀정도 μƒˆλ‘œμš΄ ꡬ쑰에 맞게 잘 μˆ˜μ •λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

μ „λ°˜μ μœΌλ‘œ ꡬ쑰적인 κ°œμ„ μ΄ λ‹λ³΄μ΄μ§€λ§Œ, λͺ‡ κ°€μ§€ 치λͺ…적인 μ„€μ • 였λ₯˜μ™€ κ°œμ„ μ΄ ν•„μš”ν•œ 뢀뢄이 λ°œκ²¬λ˜μ—ˆμŠ΅λ‹ˆλ‹€. 특히, YAML 파일의 문법 였λ₯˜μ™€ Docker μ„€μ • λˆ„λ½μ€ μ• ν”Œλ¦¬μΌ€μ΄μ…˜μ˜ 정상적인 싀행을 λ°©ν•΄ν•  수 μžˆμœΌλ―€λ‘œ λ°˜λ“œμ‹œ μˆ˜μ •μ΄ ν•„μš”ν•©λ‹ˆλ‹€. λ˜ν•œ, 주석 처리된 μ±„λ‘œ λ‚¨μ•„μžˆλŠ” νŒŒμΌλ“€μ€ μ½”λ“œλ² μ΄μŠ€μ˜ ν˜Όλž€μ„ μ•ΌκΈ°ν•  수 μžˆμœΌλ―€λ‘œ μ •λ¦¬ν•˜λŠ” 것이 μ’‹κ² μŠ΅λ‹ˆλ‹€. μ•„λž˜μ— 각 νŒŒμΌλ³„λ‘œ μƒμ„Έν•œ 리뷰 λ‚΄μš©μ„ μ •λ¦¬ν–ˆμŠ΅λ‹ˆλ‹€.

@@ -0,0 +1,5 @@
spring:
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

YAML 파일의 첫 쀄에 λΆˆν•„μš”ν•œ 곡백이 μžˆμ–΄ νŒŒμ‹± 였λ₯˜κ°€ λ°œμƒν•©λ‹ˆλ‹€. μ• ν”Œλ¦¬μΌ€μ΄μ…˜μ΄ μ •μƒμ μœΌλ‘œ μ‹œμž‘λ˜μ§€ μ•Šμ„ 수 μžˆμœΌλ―€λ‘œ 맨 μ•žμ˜ 곡백을 μ œκ±°ν•΄μ•Ό ν•©λ‹ˆλ‹€.

spring:

@@ -0,0 +1,5 @@
spring:
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

YAML 파일의 첫 쀄에 λΆˆν•„μš”ν•œ 곡백이 μžˆμ–΄ νŒŒμ‹± 였λ₯˜κ°€ λ°œμƒν•©λ‹ˆλ‹€. μ• ν”Œλ¦¬μΌ€μ΄μ…˜μ΄ μ •μƒμ μœΌλ‘œ μ‹œμž‘λ˜μ§€ μ•Šμ„ 수 μžˆμœΌλ―€λ‘œ 맨 μ•žμ˜ 곡백을 μ œκ±°ν•΄μ•Ό ν•©λ‹ˆλ‹€.

spring:

max-request-size: 5000MB

config:
import: -elasticsearch.yml
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

import 섀정에 μ˜€νƒ€κ°€ μžˆμŠ΅λ‹ˆλ‹€. -elasticsearch.yml이 μ•„λ‹ˆλΌ elasticsearch.yml둜 μˆ˜μ •ν•΄μ•Ό ν•©λ‹ˆλ‹€. 이 μ˜€νƒ€λ‘œ 인해 Elasticsearch κ΄€λ ¨ 섀정이 λ‘œλ“œλ˜μ§€ μ•Šμ•„ μ• ν”Œλ¦¬μΌ€μ΄μ…˜μ΄ μ˜€μž‘λ™ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

    import: elasticsearch.yml

Comment thread docker-compose.yml
condition: service_healthy
networks:
- spring-network
restart: always
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

api-server μ„œλΉ„μŠ€μ— healthcheck 섀정이 λˆ„λ½λ˜μ—ˆμŠ΅λ‹ˆλ‹€. ν—¬μŠ€μ²΄ν¬λŠ” μ»¨ν…Œμ΄λ„ˆμ˜ μƒνƒœλ₯Ό λͺ¨λ‹ˆν„°λ§ν•˜κ³  비정상 μƒνƒœμΌ λ•Œ μžλ™μœΌλ‘œ μž¬μ‹œμž‘ν•˜λŠ” λ“± μ„œλΉ„μŠ€ μ•ˆμ •μ„±μ„ μœ„ν•΄ ν•„μˆ˜μ μž…λ‹ˆλ‹€. Spring Boot Actuator의 health endpointλ₯Ό μ‚¬μš©ν•˜λŠ” ν—¬μŠ€μ²΄ν¬λ₯Ό μΆ”κ°€ν•˜λŠ” 것을 κ°•λ ₯히 ꢌμž₯ν•©λ‹ˆλ‹€.

    restart: always
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:9000/actuator/health"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 60s

Comment on lines +70 to +71
elasticsearch:
enabled: false
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Elasticsearch health checkκ°€ global μ„€μ •μ—μ„œ λΉ„ν™œμ„±ν™”λ˜μ–΄ μžˆμŠ΅λ‹ˆλ‹€. api-server와 같이 Elasticsearchλ₯Ό μ‚¬μš©ν•˜λŠ” λͺ¨λ“ˆμ—μ„œλŠ” health checkκ°€ ν™œμ„±ν™”λ˜μ–΄μ•Ό μ„œλΉ„μŠ€μ˜ μ—°κ²° μƒνƒœλ₯Ό μ˜¬λ°”λ₯΄κ²Œ λͺ¨λ‹ˆν„°λ§ν•  수 μžˆμŠ΅λ‹ˆλ‹€. es ν”„λ‘œν•„κ³Ό 같이 Elasticsearchλ₯Ό μ‚¬μš©ν•˜λŠ” ν”„λ‘œν•„μ—μ„œλŠ” 이 섀정을 true둜 μ˜€λ²„λΌμ΄λ“œν•˜μ—¬ ν™œμ„±ν™”ν•˜λŠ” 것이 μ’‹μŠ΅λ‹ˆλ‹€.

Comment thread Dockerfile
Comment on lines +11 to +19
COPY apps apps
COPY domains domains


RUN chmod +x gradlew

ARG MODULE_NAME=api-server

RUN ./gradlew :apps:${MODULE_NAME}:bootJar --no-daemon -x test
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Docker λΉŒλ“œ μ‹œ λ ˆμ΄μ–΄ μΊμ‹œλ₯Ό 더 효율적으둜 ν™œμš©ν•˜κΈ° μœ„ν•΄ μ˜μ‘΄μ„±μ„ λ¨Όμ € λ‹€μš΄λ‘œλ“œν•˜κ³  μ†ŒμŠ€ μ½”λ“œλ₯Ό λ³΅μ‚¬ν•˜λŠ” λ°©μ‹μœΌλ‘œ λ³€κ²½ν•˜λŠ” 것을 μ œμ•ˆν•©λ‹ˆλ‹€. ν˜„μž¬ κ΅¬μ‘°μ—μ„œλŠ” μ†ŒμŠ€ μ½”λ“œκ°€ 변경될 λ•Œλ§ˆλ‹€ 맀번 μ˜μ‘΄μ„±μ„ μƒˆλ‘œ λ‹€μš΄λ‘œλ“œν•΄μ•Ό ν•˜λ―€λ‘œ λΉŒλ“œ μ‹œκ°„μ΄ κΈΈμ–΄μ§ˆ 수 μžˆμŠ΅λ‹ˆλ‹€.

μ˜μ‘΄μ„± κ΄€λ ¨ 파일(build.gradle, settings.gradle λ“±)을 λ¨Όμ € λ³΅μ‚¬ν•˜μ—¬ ./gradlew dependencies와 같은 λͺ…λ ΉμœΌλ‘œ μ˜μ‘΄μ„±μ„ λ‹€μš΄λ‘œλ“œν•œ ν›„, μ†ŒμŠ€ μ½”λ“œλ₯Ό λ³΅μ‚¬ν•˜λ©΄ μ†ŒμŠ€ μ½”λ“œλ§Œ λ³€κ²½λ˜μ—ˆμ„ λ•Œ μ˜μ‘΄μ„± λ ˆμ΄μ–΄λ₯Ό μΊμ‹œμ—μ„œ μž¬μ‚¬μš©ν•  수 μžˆμ–΄ λΉŒλ“œ 속도λ₯Ό 크게 ν–₯μƒμ‹œν‚¬ 수 μžˆμŠ΅λ‹ˆλ‹€.

μΆ”μ²œν•˜λŠ” κ΅¬μ‘°λŠ” λ‹€μŒκ³Ό κ°™μŠ΅λ‹ˆλ‹€.

# ... build files copy
COPY build.gradle settings.gradle ./
COPY gradle gradle
COPY gradlew ./

# Grant execute permission
RUN chmod +x gradlew

# Download dependencies to leverage cache
RUN ./gradlew dependencies --no-daemon

# Copy source code
COPY apps apps
COPY domains domains

# Build application
ARG MODULE_NAME=api-server
RUN ./gradlew :apps:${MODULE_NAME}:bootJar --no-daemon -x test

Comment thread docker-compose.yml
Comment on lines 90 to 91
networks:
- spring-network
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

batch-server μ„œλΉ„μŠ€μ— healthcheckκ°€ μ—†μ–΄ μ„œλΉ„μŠ€μ˜ μƒνƒœλ₯Ό 확인할 수 μ—†μŠ΅λ‹ˆλ‹€. 배치 μž‘μ—…μ΄ μ‹€νŒ¨ν•˜κ±°λ‚˜ μ»¨ν…Œμ΄λ„ˆκ°€ 비정상 μƒνƒœκ°€ λ˜μ–΄λ„ κ°μ§€ν•˜κΈ° μ–΄λ ΅μŠ΅λ‹ˆλ‹€. κ°„λ‹¨ν•œ healthcheck라도 μΆ”κ°€ν•˜μ—¬ μ»¨ν…Œμ΄λ„ˆμ˜ 정상 λ™μž‘ μ—¬λΆ€λ₯Ό 확인할 수 μžˆλ„λ‘ ν•˜λŠ” 것이 μ’‹μŠ΅λ‹ˆλ‹€. Spring Boot Actuatorκ°€ μžˆλ‹€λ©΄ 이λ₯Ό ν™œμš©ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

Comment on lines +1 to +60
//package com.shootpointer.config.ranking;
//
//import com.shootpointer.dto.HighlightWithMemberDto;
//import com.shootpointer.listener.ranking.RankingJobExecutionListener;
//import com.shootpointer.listener.ranking.RankingStepExecutionListener;
//import com.shootpointer.processor.ranking.RankingProcessor;
//import com.shootpointer.validator.RankingValidator;
//import com.shootpointer.writer.ranking.RankingWriter;
//import com.shootpointer.domain.ranking.entity.RankingDocument;
//import lombok.RequiredArgsConstructor;
//import org.springframework.batch.core.Job;
//import org.springframework.batch.core.Step;
//import org.springframework.batch.core.configuration.annotation.StepScope;
//import org.springframework.batch.core.job.builder.JobBuilder;
//import org.springframework.batch.core.repository.JobRepository;
//import org.springframework.batch.core.step.builder.StepBuilder;
//import org.springframework.batch.item.database.JdbcPagingItemReader;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.context.annotation.Profile;
//import org.springframework.transaction.PlatformTransactionManager;
//
//@Configuration
//@RequiredArgsConstructor
//@Profile("batch")
//public class RankingBatchConfig {
// private final JobRepository jobRepository;
// private final RankingProcessor rankingProcessor;
// private final RankingWriter rankingWriter;
// private final RankingValidator validator;
// private final PlatformTransactionManager transactionManager;
// /**
// * Page Size
// */
// private final int PAGE_SIZE=1_000;
//
// @Bean
// public Job rankingJob(Step rankingStep){
// return new JobBuilder("RankingJob",jobRepository)
// .listener(new RankingJobExecutionListener())
// .validator(validator)
// .start(rankingStep)
// .build();
// }
//
// @Bean
// @StepScope
// public Step rankingStep(JdbcPagingItemReader<HighlightWithMemberDto> highlightReader){
// return new StepBuilder("RankingStep",jobRepository)
// .<HighlightWithMemberDto, RankingDocument>chunk(PAGE_SIZE,transactionManager)
// .listener(new RankingStepExecutionListener())
// .reader(highlightReader)
// .processor(rankingProcessor)
// .writer(rankingWriter)
// .build();
// }
//
//}
//
//
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

파일의 λͺ¨λ“  λ‚΄μš©μ΄ 주석 μ²˜λ¦¬λ˜μ–΄ μžˆμŠ΅λ‹ˆλ‹€. ν˜„μž¬ μ‚¬μš©λ˜μ§€ μ•ŠλŠ” μ½”λ“œλ‘œ 보이며, μ½”λ“œλ² μ΄μŠ€μ˜ ν˜Όλž€μ„ 쀄이고 μœ μ§€λ³΄μˆ˜μ„±μ„ 높이기 μœ„ν•΄ 이 νŒŒμΌμ„ μ‚­μ œν•˜λŠ” 것을 ꢌμž₯ν•©λ‹ˆλ‹€.

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication(scanBasePackages = "com.shootpointer")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

λͺ¨λ“ˆλŸ¬ λͺ¨λ†€λ¦¬μŠ€ κ΅¬μ‘°μ—μ„œλŠ” 각 domain λͺ¨λ“ˆμ΄ λ…λ¦½μ μœΌλ‘œ μ»΄ν¬λ„ŒνŠΈ μŠ€μΊ”μ„ μˆ˜ν–‰ν•  수 μžˆλ„λ‘ μ„€μ •ν•˜λŠ” 것이 μ’‹μŠ΅λ‹ˆλ‹€. @SpringBootApplication(scanBasePackages = "com.shootpointer")와 같이 μƒμœ„ νŒ¨ν‚€μ§€λ₯Ό μŠ€μΊ”ν•˜λ©΄ λͺ¨λ“  domain의 μ»΄ν¬λ„ŒνŠΈκ°€ λ“±λ‘λ˜μ–΄ λͺ¨λ“ˆ κ°„ 결합도가 λ†’μ•„μ§ˆ 수 μžˆμŠ΅λ‹ˆλ‹€.

ApiServerApplication이 μœ„μΉ˜ν•œ νŒ¨ν‚€μ§€(com.shootpointer)λ₯Ό κΈ°λ³Έ μŠ€μΊ” νŒ¨ν‚€μ§€λ‘œ μ‚¬μš©ν•˜κ³ , 각 domain λͺ¨λ“ˆμ—μ„œλŠ” @ComponentScanμ΄λ‚˜ @EnableAutoConfiguration을 톡해 ν•„μš”ν•œ μ»΄ν¬λ„ŒνŠΈλ§Œ λ…ΈμΆœν•˜λ„λ‘ κ΅¬μ„±ν•˜λŠ” 것을 κ³ λ €ν•΄ λ³΄μ„Έμš”. μ΄λ ‡κ²Œ ν•˜λ©΄ λͺ¨λ“ˆμ˜ μžμœ¨μ„±μ΄ λ†’μ•„μ§€κ³  μ˜μ‘΄μ„± 관리가 μš©μ΄ν•΄μ§‘λ‹ˆλ‹€.

Comment thread Dockerfile
COPY --from=builder /shootpointer/apps/${MODULE_NAME}/build/libs/*.jar app.jar

# μ‹€ν–‰
ENTRYPOINT ["java", "-Duser.timezone=Asia/Seoul", "-jar", "/app/app.jar"] No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

ENTRYPOINT κ²½λ‘œκ°€ /app/app.jar둜 λ˜μ–΄ μžˆλŠ”λ°, WORKDIRκ°€ /app으둜 μ„€μ •λ˜μ–΄ μžˆμœΌλ―€λ‘œ μƒλŒ€ 경둜인 app.jar둜 μ§€μ •ν•˜λŠ” 것이 더 κ°„κ²°ν•˜κ³  μΌλ°˜μ μž…λ‹ˆλ‹€. ν˜„μž¬ μ½”λ“œλ„ λ™μž‘μ—λŠ” λ¬Έμ œκ°€ μ—†μ§€λ§Œ, 가독성과 일관성을 μœ„ν•΄ μˆ˜μ •μ„ κ³ λ €ν•΄ λ³΄μ„Έμš”.

ENTRYPOINT ["java", "-Duser.timezone=Asia/Seoul", "-jar", "app.jar"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

♻️ Refactor κΈ°λŠ₯ λ³€ν™”κ°€ μ•„λ‹Œ μ½”λ“œ λ¦¬νŒ©ν„°λ§

Projects

None yet

Development

Successfully merging this pull request may close these issues.

πŸ›  Refactor : λͺ¨λ“ˆλŸ¬ λͺ¨λ†€λ‘œλ¦¬μ‹ μ•„ν‚€ν…μ²˜ λ³€κ²½

1 participant