mirror of
https://github.com/ktds-dg0501/kt-event-marketing.git
synced 2025-12-06 09:26:24 +00:00
- WinnerController에 Swagger 어노테이션 추가 (Operation, Parameter, ParameterObject) - 당첨자 목록 조회 API 기본 정렬 설정 (winnerRank ASC, size=20) - ParticipationService에서 이벤트/참여자 구분 로직 개선 - 이벤트 없음: EventNotFoundException 발생 - 참여자 없음: ParticipantNotFoundException 발생 - EventCacheService 제거 (Redis 기반 검증에서 DB 기반 검증으로 변경) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
76 lines
1.9 KiB
YAML
76 lines
1.9 KiB
YAML
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:validate}
|
|
show-sql: ${SHOW_SQL:true}
|
|
properties:
|
|
hibernate:
|
|
format_sql: true
|
|
dialect: org.hibernate.dialect.PostgreSQLDialect
|
|
default_batch_fetch_size: 100
|
|
|
|
# Redis 설정
|
|
data:
|
|
redis:
|
|
host: ${REDIS_HOST:20.214.210.71}
|
|
port: ${REDIS_PORT:6379}
|
|
password: ${REDIS_PASSWORD:Hi5Jessica!}
|
|
timeout: 3000ms
|
|
lettuce:
|
|
pool:
|
|
max-active: 8
|
|
max-idle: 8
|
|
min-idle: 2
|
|
max-wait: -1ms
|
|
|
|
# Kafka 설정
|
|
kafka:
|
|
bootstrap-servers: ${KAFKA_BOOTSTRAP_SERVERS:4.217.131.59:9095}
|
|
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
|
|
org.springframework.kafka: DEBUG
|
|
org.apache.kafka: DEBUG
|
|
file:
|
|
name: ${LOG_FILE:logs/participation-service.log}
|
|
logback:
|
|
rollingpolicy:
|
|
max-file-size: 10MB
|
|
max-history: 7
|
|
total-size-cap: 100MB
|