Skip to content

Commit 23f8c11

Browse files
committed
[Refacotoring] yml 공통 설정 추가
1 parent 5c0fb43 commit 23f8c11

File tree

4 files changed

+77
-128
lines changed

4 files changed

+77
-128
lines changed

.idea/workspace.xml

+5-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
+7-57
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,21 @@
1+
server:
2+
port: 8080
3+
14
spring:
25
datasource:
36
url: jdbc:postgresql://localhost:5432/discodeit
47
username: discodeit_user
58
password: discodeit1234
69
driver-class-name: org.postgresql.Driver
7-
sql:
8-
init:
9-
mode: always
1010
jpa:
11+
properties:
12+
hibernate:
13+
format_sql: true
1114
hibernate:
1215
ddl-auto: create-drop
13-
open-in-view: false
14-
servlet:
15-
multipart:
16-
enabled: true
17-
max-file-size: 10MB
18-
max-request-size: 30MB
19-
20-
---
21-
discodeit:
22-
storage:
23-
type: ${STORAGE_TYPE:local}
24-
local:
25-
root-path: ${STORAGE_LOCAL_ROOT_PATH:.discodeit/storage}
26-
s3:
27-
access-key: ${AWS_S3_ACCESS_KEY}
28-
secret-key: ${AWS_S3_SECRET_KEY}
29-
region: ${AWS_S3_REGION}
30-
bucket: ${AWS_S3_BUCKET}
31-
presigned-url-expiration: ${AWS_S3_PRESIGNED_URL_EXPIRATION:600}
32-
33-
---
34-
management:
35-
endpoints:
36-
web:
37-
exposure:
38-
include: info, loggers, health, metrics
39-
info:
40-
env:
41-
enabled: true
42-
43-
info:
44-
application-name: Discodeit
45-
application-version: 1.7.0
46-
java-version: 17
47-
spring-boot-version: 3.4.0
48-
key-settings:
49-
datasource:
50-
url: ${spring.datasource.url}
51-
driver-class-name: ${spring.datasource.driver-class-name}
52-
jpa:
53-
ddl-auto: ${spring.jpa.hibernate.ddl-auto}
54-
storage:
55-
type: ${discodeit.storage.type}
56-
path: ${discodeit.storage.local.root-path}
57-
multipart:
58-
max-file-size: ${spring.servlet.multipart.max-file-size}
59-
max-request-size: ${spring.servlet.multipart.max-request-size}
60-
6116
---
6217
logging:
6318
level:
6419
org.hibernate.sql: warn
65-
com.sprint.mission: debug
20+
org.hibernate.orm.jdbc.bind: trace
6621

67-
springdoc:
68-
api-docs:
69-
enabled: false
70-
swagger-ui:
71-
enabled: false
+4-62
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,15 @@
1+
server:
2+
port: 80
3+
14
spring:
25
datasource:
36
url: ${SPRING_DATASOURCE_URL}
47
username: ${DB_USERNAME}
58
password: ${DB_PASSWORD}
69
driver-class-name: org.postgresql.Driver
7-
# sql:
8-
# init:
9-
# mode: always
1010
jpa:
11-
hibernate:
12-
ddl-auto: none
13-
show-sql: false
14-
open-in-view: false
15-
servlet:
16-
multipart:
17-
enabled: true
18-
max-file-size: ${MAX_FILE_SIZE}
19-
max-request-size: ${MAX_REQUEST_SIZE}
20-
21-
22-
---
23-
discodeit:
24-
storage:
25-
type: ${STORAGE_TYPE:local}
26-
local:
27-
root-path: ${STORAGE_LOCAL_ROOT_PATH:.discodeit/storage}
28-
s3:
29-
access-key: ${AWS_S3_ACCESS_KEY}
30-
secret-key: ${AWS_S3_SECRET_KEY}
31-
region: ${AWS_S3_REGION}
32-
bucket: ${AWS_S3_BUCKET}
33-
presigned-url-expiration: ${AWS_S3_PRESIGNED_URL_EXPIRATION}
34-
35-
---
36-
management:
37-
endpoints:
38-
web:
39-
exposure:
40-
include: info, loggers, health, metrics
41-
info:
42-
env:
43-
enabled: true
44-
45-
info:
46-
application-name: Discodeit
47-
application-version: 1.7.0
48-
java-version: 17
49-
spring-boot-version: 3.4.0
50-
key-settings:
51-
datasource:
52-
url: ${spring.datasource.url}
53-
driver-class-name: ${spring.datasource.driver-class-name}
54-
jpa:
55-
ddl-auto: ${spring.jpa.hibernate.ddl-auto}
56-
storage:
57-
type: ${discodeit.storage.type}
58-
path: ${discodeit.storage.local.root-path}
59-
multipart:
60-
max-file-size: ${spring.servlet.multipart.max-file-size}
61-
max-request-size: ${spring.servlet.multipart.max-request-size}
6211

6312
---
6413
logging:
6514
level:
66-
org.hibernate.sql: warn
67-
com.sprint.mission: info
68-
69-
springdoc:
70-
api-docs:
71-
enabled: false
72-
swagger-ui:
73-
enabled: false
15+
org.hibernate.sql: info

src/main/resources/application.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
spring:
2+
application:
3+
name: discodeit
4+
profiles:
5+
active: dev
6+
servlet:
7+
multipart:
8+
enabled: true
9+
max-file-size: ${MAX_FILE_SIZE}
10+
max-request-size: ${MAX_REQUEST_SIZE}
11+
jpa:
12+
hibernate:
13+
ddl-auto: validate
14+
open-in-view: false
15+
16+
management:
17+
endpoints:
18+
web:
19+
exposure:
20+
include: info, loggers, health, metrics
21+
info:
22+
env:
23+
enabled: true
24+
25+
info:
26+
application-name: Discodeit
27+
application-version: 1.7.0
28+
java-version: 17
29+
spring-boot-version: 3.4.0
30+
key-settings:
31+
datasource:
32+
url: ${spring.datasource.url}
33+
driver-class-name: ${spring.datasource.driver-class-name}
34+
jpa:
35+
ddl-auto: ${spring.jpa.hibernate.ddl-auto}
36+
storage:
37+
type: ${discodeit.storage.type}
38+
path: ${discodeit.storage.local.root-path}
39+
multipart:
40+
max-file-size: ${spring.servlet.multipart.max-file-size}
41+
max-request-size: ${spring.servlet.multipart.max-request-size}
42+
43+
discodeit:
44+
storage:
45+
type: ${STORAGE_TYPE:local}
46+
local:
47+
root-path: ${STORAGE_LOCAL_ROOT_PATH:.discodeit/storage}
48+
s3:
49+
access-key: ${AWS_S3_ACCESS_KEY}
50+
secret-key: ${AWS_S3_SECRET_KEY}
51+
region: ${AWS_S3_REGION}
52+
bucket: ${AWS_S3_BUCKET}
53+
presigned-url-expiration: ${AWS_S3_PRESIGNED_URL_EXPIRATION:600}
54+
55+
56+
springdoc:
57+
api-docs:
58+
enabled: false
59+
swagger-ui:
60+
enabled: false
61+

0 commit comments

Comments
 (0)