From c6de9bd1d0c4539cc51aa441bc5f34a0da2de020 Mon Sep 17 00:00:00 2001 From: doyeon Date: Fri, 24 Oct 2025 13:22:39 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A1=9C=EA=B9=85=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20=EB=B0=8F=20=EC=8B=A4=ED=96=89=20=ED=94=84?= =?UTF-8?q?=EB=A1=9C=ED=8C=8C=EC=9D=BC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - application.yml에 로그 파일 Rolling 설정 추가 - .run 폴더를 Git 추적에 포함하도록 .gitignore 수정 - logs 디렉토리는 Git에서 제외 - IntelliJ 실행 프로파일 구조 개선 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .gitignore | 2 +- .run/ParticipationServiceApplication.run.xml | 28 +++++++++ .../src/main/resources/application.yml | 59 +++++++++++++++++++ 3 files changed, 88 insertions(+), 1 deletion(-) create mode 100644 .run/ParticipationServiceApplication.run.xml create mode 100644 participation-service/src/main/resources/application.yml diff --git a/.gitignore b/.gitignore index ebcff4e..b1f9379 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,6 @@ yarn-error.log* # IDE .idea/ .vscode/ -.run/ *.swp *.swo *~ @@ -22,6 +21,7 @@ dist/ build/ *.log .gradle/ +logs/ # Environment .env diff --git a/.run/ParticipationServiceApplication.run.xml b/.run/ParticipationServiceApplication.run.xml new file mode 100644 index 0000000..31c0105 --- /dev/null +++ b/.run/ParticipationServiceApplication.run.xml @@ -0,0 +1,28 @@ + + + + diff --git a/participation-service/src/main/resources/application.yml b/participation-service/src/main/resources/application.yml new file mode 100644 index 0000000..3baa495 --- /dev/null +++ b/participation-service/src/main/resources/application.yml @@ -0,0 +1,59 @@ +spring: + application: + name: participation-service + + # 데이터베이스 설정 + datasource: + url: jdbc:postgresql://${DB_HOST:4.230.72.147}:${DB_PORT:5432}/${DB_NAME:participationdb} + username: ${DB_USERNAME:eventuser} + password: ${DB_PASSWORD:Hi5Jessica!} + driver-class-name: org.postgresql.Driver + hikari: + maximum-pool-size: 10 + minimum-idle: 5 + connection-timeout: 30000 + idle-timeout: 600000 + max-lifetime: 1800000 + + # JPA 설정 + jpa: + hibernate: + ddl-auto: ${DDL_AUTO:update} + show-sql: ${SHOW_SQL:true} + properties: + hibernate: + format_sql: true + dialect: org.hibernate.dialect.PostgreSQLDialect + default_batch_fetch_size: 100 + + # Kafka 설정 + kafka: + bootstrap-servers: ${KAFKA_BOOTSTRAP_SERVERS:4.230.50.63:9092} + producer: + key-serializer: org.apache.kafka.common.serialization.StringSerializer + value-serializer: org.springframework.kafka.support.serializer.JsonSerializer + acks: all + retries: 3 + +# JWT 설정 +jwt: + secret: ${JWT_SECRET:kt-event-marketing-secret-key-for-development-only-change-in-production} + expiration: ${JWT_EXPIRATION:86400000} + +# 서버 설정 +server: + port: ${SERVER_PORT:8084} + +# 로깅 설정 +logging: + level: + com.kt.event.participation: ${LOG_LEVEL:INFO} + org.hibernate.SQL: DEBUG + org.hibernate.type.descriptor.sql.BasicBinder: TRACE + file: + name: ${LOG_FILE:logs/participation-service.log} + logback: + rollingpolicy: + max-file-size: 10MB + max-history: 7 + total-size-cap: 100MB