use of org.springframework.boot.bind.RelaxedDataBinder in project spring-boot by spring-projects.
the class MustacheEnvironmentCollector method setEnvironment.
@Override
public void setEnvironment(Environment environment) {
this.environment = (ConfigurableEnvironment) environment;
this.target = new HashMap<>();
new RelaxedDataBinder(this.target).bind(new PropertySourcesPropertyValues(this.environment.getPropertySources()));
this.propertyResolver = new RelaxedPropertyResolver(environment);
}
Aggregations