Skip to content

Commit

Permalink
chore: upgrade props handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima Denysenko committed Dec 14, 2023
1 parent a880469 commit e9f1f1f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "knowhowto.services")
@ConfigurationProperties(prefix = "iqkv.service-discovery.services")
public record ServicesProperties(String dashboardService) {
}
5 changes: 3 additions & 2 deletions edge-service/src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ server :
port : 2999

iqkv :
services :
dashboard-service : http://localhost:3000
service-discovery :
services :
dashboard-service : http://localhost:3000
5 changes: 3 additions & 2 deletions edge-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,6 @@ management :
prometheus :
enabled : true
iqkv :
services :
dashboard-service : ${DASHBOARD_SERVICE_URL:http://dashboard-service}
service-discovery :
services :
dashboard-service : ${DASHBOARD_SERVICE_URL:http://dashboard-service}
5 changes: 3 additions & 2 deletions edge-service/src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ spring :
name : edge-service

iqkv :
services :
dashboard-service : http://dashboard-service
service-discovery :
services :
dashboard-service : http://dashboard-service

0 comments on commit e9f1f1f

Please sign in to comment.