generated from pricelees/issue-pr-template
[#70] 중복 조회 로직에 로컬 캐시 도입 #71
@ -8,6 +8,10 @@ dependencies {
|
||||
// API docs
|
||||
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.13")
|
||||
|
||||
// Cache
|
||||
implementation("org.springframework.boot:spring-boot-starter-cache")
|
||||
implementation("com.github.ben-manes.caffeine:caffeine")
|
||||
|
||||
// DB
|
||||
runtimeOnly("com.h2database:h2")
|
||||
runtimeOnly("com.mysql:mysql-connector-j")
|
||||
|
||||
@ -3,8 +3,10 @@ package com.sangdol.roomescape
|
||||
import org.springframework.boot.Banner
|
||||
import org.springframework.boot.SpringApplication
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication
|
||||
import org.springframework.cache.annotation.EnableCaching
|
||||
import java.util.*
|
||||
|
||||
@EnableCaching
|
||||
@SpringBootApplication(
|
||||
scanBasePackages = ["com.sangdol.roomescape", "com.sangdol.common"]
|
||||
)
|
||||
|
||||
@ -16,6 +16,9 @@ spring:
|
||||
jdbc:
|
||||
batch_size: ${JDBC_BATCH_SIZE:100}
|
||||
order_inserts: true
|
||||
cache:
|
||||
type: caffeine
|
||||
cache-names: ${CACHE_NAMES:theme-details}
|
||||
|
||||
management:
|
||||
endpoints:
|
||||
|
||||
@ -18,6 +18,9 @@ spring:
|
||||
init:
|
||||
mode: always
|
||||
schema-locations: classpath:schema/schema-mysql.sql
|
||||
cache:
|
||||
type: caffeine
|
||||
cache-names: ${CACHE_NAMES:theme-details}
|
||||
|
||||
security:
|
||||
jwt:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user