خرید بک لینک

Vote count: 0

There are lot of posts on how to reload properties files using apache commons configuration, tried them but not working for me, below is the code snippet. The updated property value does not get picked

@Component
public class ApplicationProperties {

private PropertiesConfiguration configuration;

@PostConstruct
private void init() {
PropertiesConfiguration appConfigPropConfig         = new PropertiesConfiguration("C:/Program Files (x86)/IBM/WebSphereND/AppServer/customProperties/AppConfig.properties");
        appConfigPropConfig.setReloadingStrategy(new FileChangedReloadingStrategy());
configuration = appConfigPropConfig;
}

public PropertiesConfiguration getConfiguration() {
    return configuration;
}

public void setConfiguration(PropertiesConfiguration configuration) {
    this.configuration = configuration;
}
asked 33 secs ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 22 فروردين 1396 ساعت: 12:58

صفحه بندی