-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Closed
Labels
status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently apply
Description
With the spring-boot default config (parent-pom) i can only use maven filtering in application-properties or -yml files but not the spring-cloud-config bootstrap.yml.
I'm my case i want to use cloud-config together with eureka and i want the metadata-map of eureka to include the project version so my bootstrap.yml looks like this:
spring:
application:
name: gateway-service
profiles:
active: staging
cloud:
config:
discovery:
service-id: service-registry
enabled: true
eureka:
client:
serviceUrl:
defaultZone: http://service-registry:8761/eureka/
instance:
instanceId: ${spring.application.name}:${spring.application.instance-id:${random.value}}
prefer-ip-address: true
metadata-map:
profile: ${spring.profiles.active}
version: ${info.project.version}
info:
project:
version: @project.version@
i did add the bootstrap.yml to the list of filtered resources but filtering it by default sounds useful to me.
Metadata
Metadata
Assignees
Labels
status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently apply