Files
kamco-train-api/src/main/resources/application.yml
2026-04-01 08:55:17 +09:00

81 lines
1.6 KiB
YAML

server:
port: 8080
spring:
application:
name: kamco-training-api
profiles:
active: dev # 사용할 프로파일 지정 (ex. dev, prod, test)
datasource:
driver-class-name: org.postgresql.Driver
hikari:
connection-timeout: 60000 # 60초 연결 타임아웃
idle-timeout: 300000 # 5분 유휴 타임아웃
max-lifetime: 1800000 # 30분 최대 수명
leak-detection-threshold: 60000 # 연결 누수 감지
# minimum-idle, maximum-pool-size 는 프로파일별 설정
jpa:
hibernate:
ddl-auto: validate
properties:
hibernate:
jakarta:
persistence:
validation:
mode: none
jdbc:
batch_size: 50
default_batch_fetch_size: 100
order_updates: true
show-sql: false
servlet:
multipart:
enabled: true
max-file-size: 10GB
max-request-size: 10GB
transaction:
default-timeout: 300 # 5분 트랜잭션 타임아웃
logging:
level:
org:
springframework:
web: INFO
security: INFO
root: INFO
springdoc:
swagger-ui:
persist-authorization: true # 스웨거 새로고침해도 토큰 유지
member:
init_password: kamco1234!
# actuator
management:
health:
readinessstate:
enabled: true
livenessstate:
enabled: true
diskspace:
enabled: true
endpoint:
health:
probes:
enabled: true
show-details: when-authorized
endpoints:
jmx:
exposure:
exclude: "*"
web:
base-path: /monitor
exposure:
include:
- "health"