From 9013b4cdb098c84180771cbc6517404d03e6c422 Mon Sep 17 00:00:00 2001 From: Son DongHyuk Date: Fri, 11 Apr 2025 11:13:30 +0900 Subject: [PATCH 01/14] =?UTF-8?q?refactor:=ED=94=84=EB=A1=9C=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/compiler.xml | 11 + .idea/misc.xml | 6 + .idea/modules.xml | 8 + .idea/modules/discodeit.test.iml | 137 ++++++++ .idea/vcs.xml | 6 + .idea/workspace.xml | 305 ++++++++++++++++++ .../src/main/resources/application-dev.yml | 22 +- .../src/main/resources/application-prod.yml | 21 +- .../src/main/resources/application.yml | 22 +- 9 files changed, 499 insertions(+), 39 deletions(-) create mode 100644 .idea/compiler.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/modules/discodeit.test.iml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000000..0b023b3b37 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000000..639900d13c --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000000..3407405bbf --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/modules/discodeit.test.iml b/.idea/modules/discodeit.test.iml new file mode 100644 index 0000000000..de7f977c76 --- /dev/null +++ b/.idea/modules/discodeit.test.iml @@ -0,0 +1,137 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000000..35eb1ddfbb --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000000..74c0e717bf --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,305 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/_1-sprint-mission/src/main/resources/application-dev.yml b/_1-sprint-mission/src/main/resources/application-dev.yml index fdfe07f3c7..30b782f2d0 100644 --- a/_1-sprint-mission/src/main/resources/application-dev.yml +++ b/_1-sprint-mission/src/main/resources/application-dev.yml @@ -8,16 +8,14 @@ spring: on-profile: dev datasource: - driver-class-name: org.postgresql.Driver url: ${DEV.DB.URL} username: ${DEV.DB.USERNAME} password: ${DEV.DB.PASSWORD} jpa: - hibernate: - ddl-auto: update - show-sql: true - open-in-view: false + properties: + hibernate: + format_sql: true springdoc: api-docs: @@ -25,23 +23,11 @@ spring: swagger-ui: path: /swagger-ui.html - servlet: - multipart: - max-file-size: 10MB - max-request-size: 30MB - logging: level: - root: DEBUG - org.hibernate.SQL: DEBUG # SQL 실행 로그를 DEBUG 레벨로 출력 + org.hibernate.SQL: debug # SQL 실행 로그를 DEBUG 레벨로 출력 org.hibernate.orm.jdbc.bind: trace -discodeit: - storage: - type: local - local: - root-path: C:/storage/binaryContent - management: endpoints: web: diff --git a/_1-sprint-mission/src/main/resources/application-prod.yml b/_1-sprint-mission/src/main/resources/application-prod.yml index 6ce4909b9d..f62f098666 100644 --- a/_1-sprint-mission/src/main/resources/application-prod.yml +++ b/_1-sprint-mission/src/main/resources/application-prod.yml @@ -1,5 +1,5 @@ server: - port: 8080 + port: 80 spring: config: @@ -8,26 +8,15 @@ spring: on-profile: prod datasource: - driver-class-name: org.postgresql.Driver url: ${PROD.DB.URL} username: ${PROD.DB.USERNAME} password: ${PROD.DB.PASSWORD} jpa: - hibernate: - ddl-auto: none # 프로덕션 환경에서는 자동 DDL 생성을 비활성화 - show-sql: false # SQL 쿼리 출력 비활성화 - open-in-view: false - + properties: + hibernate: + format_sql: false logging: level: - root: info # 운영 환경에서는 info 레벨로 설정 - org.hibernate.SQL: DEBUG # SQL 실행 로그를 DEBUG 레벨로 출력 - org.hibernate.orm.jdbc.bind: trace # SQL 바인딩 로그 출력 - -discodeit: - storage: - type: local - local: - root-path: /prod/storage/binaryContent # 프로덕션 환경에서는 다른 디렉토리 사용 + org.hibernate.SQL: info diff --git a/_1-sprint-mission/src/main/resources/application.yml b/_1-sprint-mission/src/main/resources/application.yml index 6f09cd812f..c706ff8a06 100644 --- a/_1-sprint-mission/src/main/resources/application.yml +++ b/_1-sprint-mission/src/main/resources/application.yml @@ -2,10 +2,22 @@ spring: application: name: discodeit + servlet: + multipart: + maxFileSize: 10MB # 파일 하나의 최대 크기 + maxRequestSize: 30MB # 한 번에 최대 업로드 가능 용량 + datasource: + driver-class-name: org.postgresql.Driver + jpa: + hibernate: + ddl-auto: validate + open-in-view: false profiles: - active: dev - -logging: - level: - root: INFO + active: + - dev +discodeit: + storage: + type: local + local: + root-path: C:/storage/binaryContent From 05102906eb8b0e4cefb7b02dd6e0ff3e6e41d148 Mon Sep 17 00:00:00 2001 From: Son DongHyuk Date: Fri, 11 Apr 2025 11:45:04 +0900 Subject: [PATCH 02/14] refactor: gitignore --- .idea/workspace.xml | 9 ++++----- _1-sprint-mission/.gitignore | 34 ++++++++++++++++++++-------------- 2 files changed, 24 insertions(+), 19 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 74c0e717bf..0337012193 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,9 +5,8 @@ - - - + + diff --git a/_1-sprint-mission/.gitignore b/_1-sprint-mission/.gitignore index edd0b002dd..b2b7bf3d7f 100644 --- a/_1-sprint-mission/.gitignore +++ b/_1-sprint-mission/.gitignore @@ -1,14 +1,19 @@ -HELP.md .gradle build/ !gradle/wrapper/gradle-wrapper.jar !**/src/main/**/build/ !**/src/test/**/build/ -**/*.log -.idea/ -application-secret.yml -### STS ### +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr +out/ +!**/src/main/**/out/ +!**/src/test/**/out/ + +### Eclipse ### .apt_generated .classpath .factorypath @@ -20,15 +25,6 @@ bin/ !**/src/main/**/bin/ !**/src/test/**/bin/ -### IntelliJ IDEA ### -.idea -*.iws -*.iml -*.ipr -out/ -!**/src/main/**/out/ -!**/src/test/**/out/ - ### NetBeans ### /nbproject/private/ /nbbuild/ @@ -38,3 +34,13 @@ out/ ### VS Code ### .vscode/ + +### Mac OS ### +.DS_Store + +### Discodeit ### +.discodeit + +### 숨김 파일 ### +.* +!.gitignore \ No newline at end of file From cac45ceb3b4056a01028a14be96e1a98f8866158 Mon Sep 17 00:00:00 2001 From: Son DongHyuk Date: Fri, 11 Apr 2025 11:49:37 +0900 Subject: [PATCH 03/14] refactor: yaml add logging --- _1-sprint-mission/src/main/resources/application-dev.yml | 1 + _1-sprint-mission/src/main/resources/application-prod.yml | 1 + _1-sprint-mission/src/main/resources/application.yml | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/_1-sprint-mission/src/main/resources/application-dev.yml b/_1-sprint-mission/src/main/resources/application-dev.yml index 30b782f2d0..199384b16e 100644 --- a/_1-sprint-mission/src/main/resources/application-dev.yml +++ b/_1-sprint-mission/src/main/resources/application-dev.yml @@ -25,6 +25,7 @@ spring: logging: level: + com.sprint.mission.discodeit: debug org.hibernate.SQL: debug # SQL 실행 로그를 DEBUG 레벨로 출력 org.hibernate.orm.jdbc.bind: trace diff --git a/_1-sprint-mission/src/main/resources/application-prod.yml b/_1-sprint-mission/src/main/resources/application-prod.yml index f62f098666..8c394b7c4e 100644 --- a/_1-sprint-mission/src/main/resources/application-prod.yml +++ b/_1-sprint-mission/src/main/resources/application-prod.yml @@ -19,4 +19,5 @@ spring: logging: level: + com.sprint.mission.discodeit: info org.hibernate.SQL: info diff --git a/_1-sprint-mission/src/main/resources/application.yml b/_1-sprint-mission/src/main/resources/application.yml index c706ff8a06..9c53985661 100644 --- a/_1-sprint-mission/src/main/resources/application.yml +++ b/_1-sprint-mission/src/main/resources/application.yml @@ -16,6 +16,10 @@ spring: active: - dev +logging: + level: + root: info + discodeit: storage: type: local From 5d8a69b38d75ae8c1bc32cf775f9ff6a49dac162 Mon Sep 17 00:00:00 2001 From: Son DongHyuk Date: Fri, 11 Apr 2025 11:52:29 +0900 Subject: [PATCH 04/14] refactor: logback-spring.xml --- .idea/workspace.xml | 7 +--- .../src/main/resources/logback-spring.xml | 38 +++++++++++++++++++ .../src/main/resources/logback.xml | 33 ---------------- 3 files changed, 40 insertions(+), 38 deletions(-) create mode 100644 _1-sprint-mission/src/main/resources/logback-spring.xml delete mode 100644 _1-sprint-mission/src/main/resources/logback.xml diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 0337012193..79a5d25314 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,10 +4,7 @@