Skip to content

Commit 08cd9b5

Browse files
committed
refactor[yml]: redis 자동 등록 방지
1 parent 09f29ba commit 08cd9b5

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

backend/src/main/resources/application-prod.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
spring:
2+
autoconfigure:
3+
exclude:
24
datasource:
35
url: ${PROD_DATASOURCE_URL}
46
driver-class-name: ${PROD_DATASOURCE_DRIVER}

backend/src/main/resources/application.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
spring:
2+
autoconfigure:
3+
exclude:
4+
- org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration
5+
- org.springframework.boot.autoconfigure.session.SessionAutoConfiguration
26
config:
37
import: optional:file:.env[.properties]
48
application:
@@ -8,7 +12,6 @@ spring:
812
output:
913
ansi:
1014
enabled: always
11-
1215
jpa:
1316
show-sql: true
1417
hibernate:
@@ -54,6 +57,17 @@ logging:
5457
org.springframework: INFO
5558
org.hibernate: INFO
5659
com.ai.lawyer: DEBUG
60+
management:
61+
endpoints:
62+
web:
63+
base-path: /actuator # 기본값이지만 명시
64+
exposure:
65+
include: health,info # 필요시 metrics 등 추가
66+
endpoint:
67+
health:
68+
probes:
69+
enabled: true # /actuator/health/{liveness,readiness} 활성화
70+
show-details: never # 프로브 용도면 never 권장(민감정보 차단)
5771
custom:
5872
jwt:
5973
secretKey: ${CUSTOM_JWT_SECRET_KEY}

0 commit comments

Comments
 (0)