forked from codesquad-members-2022/todo-list
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- properties를 여러개를 두어 spring.progiles.active로 관리 - logging 정보는 개발시 debug, 배포시 info로 설정 - 우선 mysql을 사용하여 개발토록하고, 유사시 h2를 활용
- Loading branch information
1 parent
a46da9b
commit cf38130
Showing
3 changed files
with
9 additions
and
18 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 |
---|---|---|
|
@@ -35,3 +35,7 @@ out/ | |
|
||
### VS Code ### | ||
.vscode/ | ||
|
||
### db-connection | ||
application-h2.properties | ||
application-mysql.properties |
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
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 |
---|---|---|
@@ -1,18 +1,5 @@ | ||
# do not set two of datasource. | ||
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver | ||
#spring.datasource.driverClassName=org.h2.Driver | ||
|
||
# In-Memory mode | ||
#spring.datasource.url=jdbc:h2:mem:test;DB_CLOSE_ON_EXIT=FALSE | ||
#spring.datasource.username=sa | ||
#spring.datasource.password= | ||
|
||
# aws mysql | ||
spring.datasource.url=jdbc:mysql://ec2-15-165-159-189.ap-northeast-2.compute.amazonaws.com:3306/testdb?useSSL=false&useUnicode=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Seoul | ||
spring.datasource.username=test | ||
spring.datasource.password=team05 | ||
|
||
#spring.h2.console.enabled=true | ||
#spring.h2.console.path=/h2-console | ||
|
||
# profiles: h2, mysql | ||
spring.profiles.active=mysql | ||
|
||
#logging - develop: debug, production: info | ||
logging.level.com.team05.todolist=debug |