Skip to content

Commit

Permalink
chore: 서브모듈 적용 방식을 프로필 include에서 import로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Ohzzi committed Aug 2, 2022
1 parent f7ff196 commit 1516f6d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions backend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,5 @@ out/
### VS Code ###
.vscode/

### auth ###
application-auth.yml
application-h2.yml
### submodules ###
submodules/
2 changes: 1 addition & 1 deletion backend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ task copySubmodule(type: Copy) {
copy {
from 'security'
include "*.yml"
into 'src/main/resources'
into 'src/main/resources/submodules'
}
}

Expand Down
8 changes: 4 additions & 4 deletions backend/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
spring:
profiles:
include:
- auth
- h2
config:
import:
- classpath:/submodules/application-auth.yml
- classpath:/submodules/application-h2.yml
jpa:
hibernate:
ddl-auto: none
Expand Down

0 comments on commit 1516f6d

Please sign in to comment.