I don't know if it's normal behaviour or a bug. I've created a ConfiguationProperties :
@Configuration
@ConfigurationProperties("sample")
public class MyConfig {
private Map<String, String> labels;
public Map<String, String> getLabels() {
return labels;
}
public void setLabels(Map<String, String> labels) {
this.labels = labels;
}
}
And a Yaml File :
sample:
labels:
simple: value1
net.gcuisinier: value2
net.gcuisinier/env: value3
But for an unknown reason, the result map contains
simple=value1
net.gcuisinier=value2
net.gcuisinierenv=value3
Without the "/" in the last key.
Does anyone know if it's normal ? Or it's a bug?
You can find a simple project that reproduce the "problem" here : https://github.com/gcuisinier/spring-issue