From 8ff560f629da67927e8b973cf3121ec99644f517 Mon Sep 17 00:00:00 2001 From: Guiwoo Date: Sun, 28 Aug 2022 17:04:06 +0900 Subject: [PATCH] =?UTF-8?q?=ED=92=80=EB=A6=AC=ED=80=98=EC=8A=A4=ED=8A=B8?= =?UTF-8?q?=20=EC=96=91=EC=8B=9D=20=EC=84=A4=EC=A0=95,=20Dev=20=EC=98=B5?= =?UTF-8?q?=EC=85=98=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pull_request_template.md | 10 ++++++ src/main/resources/application-dev.properties | 3 ++ src/main/resources/application.yml | 31 ++++++++++--------- 3 files changed, 30 insertions(+), 14 deletions(-) create mode 100644 pull_request_template.md create mode 100644 src/main/resources/application-dev.properties diff --git a/pull_request_template.md b/pull_request_template.md new file mode 100644 index 0000000..d69b4ee --- /dev/null +++ b/pull_request_template.md @@ -0,0 +1,10 @@ +### 변경사항 + +**AS-IS** + +**TO-BE** + +### 테스트 + +- [ ] 테스트 코드 +- [ ] API 테스트 \ No newline at end of file diff --git a/src/main/resources/application-dev.properties b/src/main/resources/application-dev.properties new file mode 100644 index 0000000..e1a2786 --- /dev/null +++ b/src/main/resources/application-dev.properties @@ -0,0 +1,3 @@ +DB_HOST: jdbc:mysql://localhost:3306/workduo?autoReconnect=true&allowPublicKeyRetrieval=true +DB_NAME: workduo1 +DB_PASSWORD: workduo1 \ No newline at end of file diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index bd8ff41..a966da9 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,28 +1,31 @@ spring: + profiles: + # local 세팅 입니다. 추후 prod 타입일경우 active : prod 변경 필요 + # application-prod.properties + active: dev -# datasource: -# url: jdbc:h2:mem:test -# username: sa -# password: -# driver-class-name: org.h2.Driver datasource: - url: jdbc:mysql://localhost:3306/workduo?autoReconnect=true&allowPublicKeyRetrieval=true driver-class-name: com.mysql.cj.jdbc.Driver - username: workduo1 - password: workduo1! - -# h2: -# console: -# enabled: true + url: ${DB_HOST} + username: ${DB_NAME} + password: ${DB_PASSWORD} jpa: - hibernate: open-in-view: false properties: hibernate: format_sql: true default_batch_fetch_size: 1000 dialect: org.hibernate.dialect.MySQL57InnoDBDialect - +# h2 DB Setting for local +# h2: +# console: +# enabled: true +# +# datasource: +# url: jdbc:h2:mem:test +# username: sa +# password: +# driver-class-name: org.h2.Driver logging.level: org.hibernate.SQL: debug \ No newline at end of file