@
Initial commit: SB 백엔드 (Spring Boot + MyBatis) - 사용자 CRUD REST API (/api/users) - MariaDB(MyBatis) + Redis 캐싱 구성 - CORS 설정 및 헬스 체크 엔드포인트 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> @
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
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
|
||||
Reference in New Issue
Block a user