52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
|
|
server:
|
||
|
|
port: 8080
|
||
|
|
servlet:
|
||
|
|
context-path: /
|
||
|
|
|
||
|
|
spring:
|
||
|
|
application:
|
||
|
|
name: sb_bt
|
||
|
|
|
||
|
|
# ===== MariaDB =====
|
||
|
|
datasource:
|
||
|
|
driver-class-name: org.mariadb.jdbc.Driver
|
||
|
|
url: jdbc:mariadb://localhost:3306/sb_db?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Seoul
|
||
|
|
username: sb_user
|
||
|
|
password: sb_pass
|
||
|
|
hikari:
|
||
|
|
maximum-pool-size: 10
|
||
|
|
minimum-idle: 2
|
||
|
|
connection-timeout: 30000
|
||
|
|
pool-name: sbHikariPool
|
||
|
|
|
||
|
|
# ===== Redis =====
|
||
|
|
data:
|
||
|
|
redis:
|
||
|
|
host: localhost
|
||
|
|
port: 6379
|
||
|
|
password:
|
||
|
|
database: 0
|
||
|
|
timeout: 3000ms
|
||
|
|
lettuce:
|
||
|
|
pool:
|
||
|
|
max-active: 8
|
||
|
|
max-idle: 8
|
||
|
|
min-idle: 0
|
||
|
|
|
||
|
|
# ===== MyBatis =====
|
||
|
|
mybatis:
|
||
|
|
type-aliases-package: com.example.sb_bt.domain
|
||
|
|
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
|
||
|
|
com.example.sb_bt: DEBUG
|
||
|
|
com.example.sb_bt.mapper: DEBUG
|