Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
FLPATH-274 enable spring-cloud-config
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiubodiu committed Apr 14, 2023
1 parent 12107e2 commit 74a5c14
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 15 deletions.
6 changes: 6 additions & 0 deletions notification-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,12 @@
<scope>runtime</scope>
</dependency>
<!-- END Metrics Dependencies -->
<!-- START Spring Cloud Config Dependencies -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-config</artifactId>
</dependency>
<!-- END Spring Cloud Config Dependencies -->
</dependencies>
<dependencyManagement>
<dependencies>
Expand Down
4 changes: 0 additions & 4 deletions notification-service/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ spring:
username: postgres
password: postgres

springdoc:
writer-with-order-by-keys: true
writer-with-default-pretty-printer: true

# ===================================================================
# Application specific properties
# Add your own application properties here, see the
Expand Down
10 changes: 5 additions & 5 deletions notification-service/src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ===================================================================
# Spring Boot configuration for the "dev" profile.
# Spring Boot configuration for the "local" profile.
#
# This configuration overrides the application.yml file and should be
# only used for development purpose.
Expand Down Expand Up @@ -42,10 +42,10 @@ spring:
driverClassName: org.h2.Driver
username: postgres
password: postgres

springdoc:
writer-with-order-by-keys: true
writer-with-default-pretty-printer: true
cloud:
config:
enabled: true
import: optional:configserver:http://localhost:8888

# ===================================================================
# Application specific properties
Expand Down
3 changes: 3 additions & 0 deletions notification-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ spring:
default-property-inclusion: non_null
main:
lazy-initialization: true
cloud:
config:
enabled: false

springdoc:
writer-with-order-by-keys: true
Expand Down
5 changes: 5 additions & 0 deletions workflow-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@
<scope>runtime</scope>
</dependency>
<!-- END Metrics Dependencies -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-config</artifactId>
</dependency>
<!-- END Spring Cloud Config Dependencies -->

<!-- START Web Client using OpenFeign Dependencies -->
<dependency>
Expand Down
4 changes: 1 addition & 3 deletions workflow-service/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,4 @@ spring:
managerPassword: "admin"
lifecycle:
timeout-per-shutdown-phase: "25s"
springdoc:
writer-with-order-by-keys: true
writer-with-default-pretty-printer: true

19 changes: 16 additions & 3 deletions workflow-service/src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@ spring:
managerPassword: null
lifecycle:
timeout-per-shutdown-phase: "25s"
springdoc:
writer-with-order-by-keys: true
writer-with-default-pretty-printer: true
cloud:
config:
enabled: true
import: optional:configserver:http://localhost:8888

logging:
level:
ROOT: INFO
com.redhat.parodos.workflow: DEBUG

# ===================================================================
# Application specific properties
# Add your own application properties here, see the
# ApplicationProperties class to have type-safe configuration
# ===================================================================

4 changes: 4 additions & 0 deletions workflow-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ spring:
lifecycle:
timeout-per-shutdown-phase: "25s"

cloud:
config:
enabled: false

management:
metrics:
export:
Expand Down

0 comments on commit 74a5c14

Please sign in to comment.