⚙️ Configuration
Sprout는 시작 시 로드되는 YAML 기반 구성 시스템을 사용합니다. AppConfig
클래스가 파싱을 처리하고 구성 속성에 편리한 접근을 제공합니다.
설정 파일
프로젝트에 src/main/resources/application.yml
파일을 생성하세요:
author: 당신의-이름
server:
execution-mode: hybrid # nio | hybrid | blocking (기본값: hybrid)
thread-type: virtual # virtual | platform (기본값: virtual)
thread-pool-size: 150 # thread-type = platform일 때 사용
sprout:
database:
url: jdbc:mysql://localhost:3306/sprout
username: root
password: change-me
security:
enabled: true
jwt:
secret: your-jwt-secret-key
expiration: 86400 # 24시간 (초 단위)