Skip to content

Commit fc71ca5

Browse files
committed
chore[config]: Spring 설정 yml 업데이트
1 parent ddf7458 commit fc71ca5

File tree

1 file changed

+47
-10
lines changed

1 file changed

+47
-10
lines changed

backend/src/main/resources/application.yml

Lines changed: 47 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,19 @@ spring:
33
exclude:
44
- org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration
55
- org.springframework.boot.autoconfigure.session.SessionAutoConfiguration
6+
67
config:
7-
import: optional:file:.env[.properties]
8+
import: optional:file:.env[.properties], classpath:system-prompt.yml
9+
810
application:
911
name: back
12+
1013
profiles:
1114
active: ${SPRING_PROFILES_ACTIVE} # 기본 dev 환경
15+
1216
output:
1317
ansi:
1418
enabled: always
15-
jpa:
16-
show-sql: true
17-
hibernate:
18-
ddl-auto: ${SPRING_JPA_HIBERNATE_DDL_AUTO}
19-
properties:
20-
hibernate:
21-
use_sql_comments: true
22-
format_sql: true
23-
highlight_sql: true
2419

2520
mail:
2621
host: smtp.gmail.com
@@ -40,11 +35,51 @@ spring:
4035
writetimeout: 5000
4136
auth-code-expiration-millis: 1800000
4237

38+
ai:
39+
openai:
40+
api-key: ${OPENAI_API_KEY}
41+
chat:
42+
options:
43+
model: gpt-4.1-nano
44+
embedding:
45+
options:
46+
model: text-embedding-3-small
47+
48+
chat:
49+
memory:
50+
repository:
51+
jdbc:
52+
initialize-schema: never
53+
54+
vectorstore:
55+
qdrant:
56+
host: localhost
57+
port: 6334
58+
collection-name: "legal_cases"
59+
vector-size: 1536
60+
61+
jpa:
62+
show-sql: true
63+
hibernate:
64+
ddl-auto: ${SPRING_JPA_HIBERNATE_DDL_AUTO}
65+
# naming:
66+
# physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
67+
properties:
68+
hibernate:
69+
use_sql_comments: true
70+
format_sql: true
71+
highlight_sql: true
72+
defer-datasource-initialization: true
73+
4374
h2:
4475
console:
4576
enabled: true
4677
path: /h2-console
4778

79+
sql:
80+
init:
81+
mode: always
82+
4883
security:
4984
oauth2:
5085
client:
@@ -80,6 +115,7 @@ logging:
80115
org.springframework: INFO
81116
org.hibernate: INFO
82117
com.ai.lawyer: DEBUG
118+
83119
management:
84120
endpoints:
85121
web:
@@ -91,6 +127,7 @@ management:
91127
probes:
92128
enabled: true # /actuator/health/{liveness,readiness} 활성화
93129
show-details: never # 프로브 용도면 never 권장(민감정보 차단)
130+
94131
custom:
95132
jwt:
96133
secretKey: ${CUSTOM_JWT_SECRET_KEY}

0 commit comments

Comments
 (0)