Skip to content

Commit

Permalink
#39 moving to yaml properties files, leveraging include in main appli…
Browse files Browse the repository at this point in the history
…cation.yaml
  • Loading branch information
Pieter Van Eeckhout committed Jun 27, 2023
1 parent 1261417 commit e336ce2
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.

This file was deleted.

1 change: 1 addition & 0 deletions boot/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ spring:
config:
import:
- trademodule.yaml
- usermodule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,5 @@
import org.springframework.context.annotation.PropertySources;

@Configuration("UserModulePropertyConfig")
@PropertySources({
@PropertySource("classpath:usermodule.properties"),
@PropertySource("classpath:usermodule-local.properties"),
})
public class PropertyConfig {
}
5 changes: 5 additions & 0 deletions user-module/src/main/resources/usermodule-local.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
spring:
datasource:
url: jdbc:postgresql://localhost:54322/usermodule
username: edpn_usermodule
password: hvWYDHqG3yXCKReH
10 changes: 10 additions & 0 deletions user-module/src/main/resources/usermodule.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
spring:
liquibase:
enabled: true
change-log: classpath:db/usermodule/changelog/usermodule-changelog.xml

datasource:
url: ${USERMODULE_DB_URL}
username: ${USERMODULE_DB_USERNAME}
password: ${USERMODULE_DB_PASSWORD}
driver-class-name: org.postgresql.Driver

0 comments on commit e336ce2

Please sign in to comment.