Reputation: 3715
When using Spring Cloud config server, I have observed the below behavior. Please let me know, if my hypothesis is correct regarding the behavior.
server.port
property set, I cannot override the value, even by passing -Dserver.port
application.yaml/property
of the applicationapplication.property/yaml
, I can override the value from the command line by passing the -Dserver.port
option.Is my assumptions right based on the above behavior.
Upvotes: 0
Views: 1105
Reputation: 416
Yes, spring cloud config value can't overwrite by default . We can change to override with property pring.cloud.config.allowOverride=true
https://cloud.spring.io/spring-cloud-static/spring-cloud.html#overriding-bootstrap-properties
Upvotes: 1