Skip to content

Commit

Permalink
풀리퀘스트 양식 설정, Dev 옵션 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
Guiwoo committed Aug 28, 2022
1 parent cf9420e commit 8ff560f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 14 deletions.
10 changes: 10 additions & 0 deletions pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
### 변경사항
<!-- 이 PR에서 어떤점들이 변경되었는지 기술해주세요. 가급적이면 as-is, to-be를 활용해서 작성해주세요. -->
**AS-IS**

**TO-BE**

### 테스트
<!-- 본 변경사항이 테스트가 되었는지 기술해주세요 -->
- [ ] 테스트 코드
- [ ] API 테스트
3 changes: 3 additions & 0 deletions src/main/resources/application-dev.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DB_HOST: jdbc:mysql://localhost:3306/workduo?autoReconnect=true&allowPublicKeyRetrieval=true
DB_NAME: workduo1
DB_PASSWORD: workduo1
31 changes: 17 additions & 14 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8ff560f

Please sign in to comment.