2026-05-30 21:18:35 +09:00
|
|
|
server:
|
|
|
|
|
port: 8080
|
|
|
|
|
servlet:
|
|
|
|
|
context-path: /
|
|
|
|
|
|
|
|
|
|
spring:
|
2026-05-31 15:43:09 +09:00
|
|
|
# 로컬 개발 시 .env(properties 형식, git 미추적)에서 환경변수 로드. 없으면 OS/컨테이너 환경변수 사용.
|
|
|
|
|
config:
|
|
|
|
|
import: optional:file:.env[.properties]
|
|
|
|
|
|
2026-05-30 21:18:35 +09:00
|
|
|
application:
|
|
|
|
|
name: sb_bt
|
|
|
|
|
|
2026-05-31 15:43:09 +09:00
|
|
|
# ===== SQL 초기화 ===== 기동 시 member 테이블 자동 생성(IF NOT EXISTS 라 멱등)
|
|
|
|
|
sql:
|
|
|
|
|
init:
|
|
|
|
|
mode: always
|
|
|
|
|
schema-locations: classpath:db/member.sql,classpath:db/board.sql,classpath:db/account.sql,classpath:db/dev-seed.sql
|
|
|
|
|
continue-on-error: true
|
|
|
|
|
|
|
|
|
|
# ===== MariaDB ===== (접속 정보는 환경변수로 외부화)
|
2026-05-30 21:18:35 +09:00
|
|
|
datasource:
|
|
|
|
|
driver-class-name: org.mariadb.jdbc.Driver
|
2026-05-31 15:43:09 +09:00
|
|
|
url: ${DB_URL:jdbc:mariadb://localhost:3306/sb_db?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Seoul}
|
|
|
|
|
username: ${DB_USERNAME:root}
|
|
|
|
|
password: ${DB_PASSWORD:}
|
2026-05-30 21:18:35 +09:00
|
|
|
hikari:
|
|
|
|
|
maximum-pool-size: 10
|
|
|
|
|
minimum-idle: 2
|
|
|
|
|
connection-timeout: 30000
|
|
|
|
|
pool-name: sbHikariPool
|
|
|
|
|
|
2026-05-31 15:43:09 +09:00
|
|
|
# ===== Redis ===== (접속 정보는 환경변수로 외부화)
|
2026-05-30 21:18:35 +09:00
|
|
|
data:
|
|
|
|
|
redis:
|
2026-05-31 15:43:09 +09:00
|
|
|
host: ${REDIS_HOST:localhost}
|
|
|
|
|
port: ${REDIS_PORT:6379}
|
|
|
|
|
password: ${REDIS_PASSWORD:}
|
|
|
|
|
database: ${REDIS_DATABASE:0}
|
2026-05-30 21:18:35 +09:00
|
|
|
timeout: 3000ms
|
|
|
|
|
lettuce:
|
|
|
|
|
pool:
|
|
|
|
|
max-active: 8
|
|
|
|
|
max-idle: 8
|
|
|
|
|
min-idle: 0
|
|
|
|
|
|
|
|
|
|
# ===== MyBatis =====
|
|
|
|
|
mybatis:
|
2026-05-31 15:43:09 +09:00
|
|
|
type-aliases-package: com.sb.web.user.domain,com.sb.web.auth.domain
|
2026-05-30 21:18:35 +09:00
|
|
|
mapper-locations: classpath:mapper/**/*.xml
|
|
|
|
|
configuration:
|
|
|
|
|
map-underscore-to-camel-case: true
|
|
|
|
|
jdbc-type-for-null: 'NULL'
|
|
|
|
|
default-fetch-size: 100
|
|
|
|
|
default-statement-timeout: 30
|
|
|
|
|
|
|
|
|
|
# ===== Logging =====
|
|
|
|
|
logging:
|
|
|
|
|
level:
|
|
|
|
|
root: INFO
|
2026-05-31 15:43:09 +09:00
|
|
|
com.sb.web: DEBUG
|
|
|
|
|
com.sb.web.user.mapper: DEBUG
|
|
|
|
|
com.sb.web.auth.mapper: DEBUG
|