aftersss

Results 3 comments of aftersss

> Shouldn't the `@ConfigurationProperties` class above have an `@RefreshScope` annotation on it to make this work? Maybe the creation of a bean is very expensive(for example, `DataSource`), and the properties...

Here is a more meaningful example: ``` import java.util.LinkedHashMap; import java.util.Map; import javax.annotation.Resource; import javax.sql.DataSource; import org.apache.commons.dbcp2.BasicDataSource; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.cloud.context.environment.EnvironmentChangeEvent; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import...

Adding @RefreshScope to DataSourceDynamicProperties still don't work, to make this work, another thing should be done too: change `@EventListener(EnvironmentChangeEvent.class)` to `@EventListener(RefreshScopeRefreshedEvent.class)` . But If I do this, `@RefreshScope` is useless,...