My spring cloud config server is using JDBC as backend. My requirement is to use multiple labels to fetch config.
When fetching data using http://localhost:8888/test_app,test_app2/dev,prod/master URL i am getting the following response
{
"name": "test_app,test_app2",
"profiles": [
"dev,prod"
],
"label": "master",
"version": null,
"state": null,
"propertySources": [
{
"name": "test_app2-prod",
"source": {
"name_dev": "rahul_dev9999"
}
},
{
"name": "test_app-prod",
"source": {
"name": "rahul"
}
},
{
"name": "test_app2-dev",
"source": {
"name_dev": "rahul_dev9999"
}
},
{
"name": "test_app-dev",
"source": {
"name_dev": "rahul_dev"
}
}
]
}
But getting empty response after adding another label, http://localhost:8888/test_app,test_app2/dev,prod/master,feature
{
"name": "test_app,test_app2",
"profiles": [
"dev,prod"
],
"label": "master,feature",
"version": null,
"state": null,
"propertySources": []
}
Is this supported by spring cloud config?
It is required when working on feature branch, i want all configs to be pulled from master label while certain config from feature label.
My spring cloud config server is using JDBC as backend. My requirement is to use multiple labels to fetch config.
When fetching data using
http://localhost:8888/test_app,test_app2/dev,prod/masterURL i am getting the following response{ "name": "test_app,test_app2", "profiles": [ "dev,prod" ], "label": "master", "version": null, "state": null, "propertySources": [ { "name": "test_app2-prod", "source": { "name_dev": "rahul_dev9999" } }, { "name": "test_app-prod", "source": { "name": "rahul" } }, { "name": "test_app2-dev", "source": { "name_dev": "rahul_dev9999" } }, { "name": "test_app-dev", "source": { "name_dev": "rahul_dev" } } ] }But getting empty response after adding another label,
http://localhost:8888/test_app,test_app2/dev,prod/master,feature{ "name": "test_app,test_app2", "profiles": [ "dev,prod" ], "label": "master,feature", "version": null, "state": null, "propertySources": [] }Is this supported by spring cloud config?