static 캐시 설정

This commit is contained in:
Rinjae
2026-01-18 19:42:59 +09:00
parent 3754d97f21
commit 7d22bd3e0c
5 changed files with 38 additions and 0 deletions
+8
View File
@@ -3,6 +3,14 @@ server.port: '30200'
spring: spring:
jta: jta:
enabled: true enabled: true
web:
resources:
cache:
period: 0 # 캐시 비활성화 (개발 환경)
cachecontrol:
max-age: 0
must-revalidate: true
no-cache: true
jpa: jpa:
properties: properties:
hibernate: hibernate:
@@ -3,6 +3,14 @@ server.port: '30200'
spring: spring:
jta: jta:
enabled: true enabled: true
web:
resources:
cache:
period: 0 # 캐시 비활성화 (개발 환경)
cachecontrol:
max-age: 0
must-revalidate: true
no-cache: true
jpa: jpa:
properties: properties:
hibernate: hibernate:
+7
View File
@@ -4,6 +4,13 @@ spring:
config: config:
activate: activate:
on-profile: prod on-profile: prod
web:
resources:
cache:
period: 86400 # 1일 (운영 환경 - 캐시 활성화)
cachecontrol:
max-age: 86400
public: true
jpa: jpa:
properties: properties:
hibernate: hibernate:
+6
View File
@@ -1,6 +1,12 @@
spring: spring:
jta: jta:
enabled: true enabled: true
web:
resources:
cache:
period: 3600 # 1시간 (스테이징 환경)
cachecontrol:
max-age: 3600
jpa: jpa:
properties: properties:
hibernate: hibernate:
+9
View File
@@ -25,6 +25,15 @@ spring:
jpa: jpa:
open-in-view: false open-in-view: false
web:
resources:
cache:
period: 0 # 캐시 비활성화 (개발환경)
cachecontrol:
max-age: 0
must-revalidate: true
no-cache: true
jta: jta:
enabled: true enabled: true
atomikos: atomikos: