-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: Springboot web, jpa, lombok 의존성 추가 (#7)
* Chore: DB 연결 정보를 application.yml에 추가 * Chore: web, jpa, postgresql, lombok 의존성 추가 * Chore: env example 파일 추가 * Chore: testcontainers 테스트 환경 설정 추가
- Loading branch information
1 parent
c068a7d
commit 4840943
Showing
6 changed files
with
59 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -43,3 +43,4 @@ out/ | |
|
||
**/resources/.env | ||
**/resources/.env.* | ||
!**/resources/.env.example |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
DATABASE_HOST= | ||
DATABASE_PORT= | ||
DATABASE_NAME= | ||
DATABASE_USER= | ||
DATABASE_PASSWORD= |
This file was deleted.
Oops, something went wrong.
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,25 @@ | ||
spring.application.name: run-us | ||
|
||
spring: | ||
jpa: | ||
hibernate: | ||
ddl-auto: none | ||
show-sql: true | ||
open-in-view: false | ||
|
||
datasource: | ||
driver-class-name: org.postgresql.Driver | ||
url: jdbc:postgresql://${DATABASE_HOST}:${DATABASE_PORT}/${DATABASE_NAME} | ||
username: ${DATABASE_USER} | ||
password: ${DATABASE_PASSWORD} | ||
|
||
--- | ||
spring.config.activate.on-profile: local | ||
|
||
spring: | ||
jpa: | ||
hibernate: | ||
ddl-auto: update | ||
|
||
--- | ||
spring.config.activate.on-profile: prod |
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,11 @@ | ||
spring: | ||
jpa: | ||
hibernate: | ||
ddl-auto: create | ||
show-sql: true | ||
open-in-view: false | ||
defer-datasource-initialization: true | ||
|
||
datasource: | ||
driver-class-name: org.testcontainers.jdbc.ContainerDatabaseDriver | ||
url: jdbc:tc:postgresql:16.3://test |