Skip to content
Snippets Groups Projects
Commit 725961aa authored by Paul-Christian Volkmer's avatar Paul-Christian Volkmer
Browse files

Ignore non existing resources

parent 964c2e43
No related merge requests found
......@@ -14,7 +14,7 @@ import de.thm.arsnova.connector.client.ConnectorClientImpl;
@Configuration
@PropertySources({
@PropertySource("arsnova.properties.example"),
@PropertySource("file:///etc/arsnova/connector.properties"),
@PropertySource("file:///etc/arsnova/arsnova.properties"),
})
public class ExtraConfig {
......@@ -23,7 +23,10 @@ public class ExtraConfig {
@Bean
public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
return new PropertySourcesPlaceholderConfigurer();
PropertySourcesPlaceholderConfigurer configurer = new PropertySourcesPlaceholderConfigurer();
configurer.setIgnoreResourceNotFound(true);
configurer.setIgnoreUnresolvablePlaceholders(false);
return configurer;
}
@Bean(name = "connectorClient")
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment