Skip to content

Commit 24e2e73

Browse files
committed
fix: application.yml 수정 및 .gitignore 변경
1 parent 0b419cb commit 24e2e73

File tree

4 files changed

+37
-8
lines changed

4 files changed

+37
-8
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,6 @@ replay_pid*
5656
# --- Env files (local secrets) ---
5757
.env
5858
.env.*
59+
60+
# --- yml (local secrets) ---
61+
**/application-secret*.yml
Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
spring:
2-
profiles:
3-
active: dev
42
datasource:
3+
url: jdbc:mysql://localhost:3306/${DB_NAME}
54
driver-class-name: com.mysql.cj.jdbc.Driver
6-
url: jdbc:mysql://localhost:3306/
7-
username: root
5+
username: ${DB_USER}
86
password: ${DB_PASSWORD}
97
hikari:
10-
auto-commit: false
8+
auto-commit: false
9+
jpa:
10+
database-platform: org.hibernate.dialect.MySQLDialect
11+
hibernate:
12+
ddl-auto: update
13+
properties:
14+
hibernate:
15+
format_sql: true
16+
highlight_sql: true
17+
use_sql_comments: true
Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
11
spring:
22
datasource:
3-
url: jdbc:h2:mem:db_dev;MODE=MySQL
3+
url: jdbc:mysql://localhost:3306/${DB_NAME}
4+
driver-class-name: com.mysql.cj.jdbc.Driver
5+
username: ${DB_USER}
6+
password: ${DB_PASSWORD}
7+
hikari:
8+
auto-commit: false
9+
jpa:
10+
database-platform: org.hibernate.dialect.MySQLDialect
11+
hibernate:
12+
ddl-auto: create-drop
13+
properties:
14+
hibernate:
15+
format_sql: true
16+
highlight_sql: false
17+
use_sql_comments: true

src/main/resources/application.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ spring:
77
profiles:
88
active: dev
99
include: secret
10-
10+
datasource:
11+
hikari:
12+
auto-commit: false
1113
jpa:
1214
open-in-view: false
1315
properties:
@@ -23,7 +25,10 @@ springdoc:
2325

2426
logging:
2527
level:
26-
com.matchmyduo: DEBUG
28+
org.hibernate.orm.jdbc.bind: WARN
29+
org.hibernate.orm.jdbc.extract: WARN
30+
org.springframework.transaction.interceptor: INFO
31+
com.matchmyduo: INFO
2732

2833
custom:
2934
jwt:

0 commit comments

Comments
 (0)