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
Branches
Tags
No related merge requests found
...@@ -14,7 +14,7 @@ import de.thm.arsnova.connector.client.ConnectorClientImpl; ...@@ -14,7 +14,7 @@ import de.thm.arsnova.connector.client.ConnectorClientImpl;
@Configuration @Configuration
@PropertySources({ @PropertySources({
@PropertySource("arsnova.properties.example"), @PropertySource("arsnova.properties.example"),
@PropertySource("file:///etc/arsnova/connector.properties"), @PropertySource("file:///etc/arsnova/arsnova.properties"),
}) })
public class ExtraConfig { public class ExtraConfig {
...@@ -23,7 +23,10 @@ public class ExtraConfig { ...@@ -23,7 +23,10 @@ public class ExtraConfig {
@Bean @Bean
public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() { public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
return new PropertySourcesPlaceholderConfigurer(); PropertySourcesPlaceholderConfigurer configurer = new PropertySourcesPlaceholderConfigurer();
configurer.setIgnoreResourceNotFound(true);
configurer.setIgnoreUnresolvablePlaceholders(false);
return configurer;
} }
@Bean(name = "connectorClient") @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