-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from 0702Yoon/main
application.yml 파일 분리
- Loading branch information
Showing
4 changed files
with
37 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,3 @@ out/ | |
|
||
### VS Code ### | ||
.vscode/ | ||
|
||
### yml file ### | ||
/src/main/resources/application.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
spring: | ||
datasource: | ||
url: ${DB_URL} | ||
driver-class-name: com.mysql.cj.jdbc.Driver | ||
username: ${DB_USER_NAME} | ||
password: ${DB_PASSWORD} | ||
# 환경 변수를 사용하는 데이터베이스 설정 (주석 해제 필요시) # datasource: | ||
# 태태 로컬 데이터베이스 설정 | ||
# datasource: | ||
# url: jdbc:mysql://localhost:3306/bigbrother | ||
# driver-class-name: com.mysql.cj.jdbc.Driver | ||
# username: root | ||
# password: 1234 | ||
jpa: | ||
hibernate: | ||
ddl-auto: update | ||
properties: | ||
hibernate: | ||
format_sql: true | ||
show_sql: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
spring: | ||
datasource: | ||
url: ${DB_URL} | ||
username: ${DB_USER_NAME} | ||
password: ${DB_PASSWORD} | ||
hikari: | ||
max-lifetime: 177000 # 177초, hikari는 RDS wait_timeout(180초)보다 2 ~ 3초 정도 짧게 줄 것을 권장 | ||
driver-class-name: com.mysql.cj.jdbc.Driver | ||
jpa: | ||
hibernate: | ||
ddl-auto: create-drop | ||
properties: | ||
hibernate: | ||
format_sql: true | ||
show_sql: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters