Skip to content

Commit

Permalink
fixed #43 - the contrast-finder.conf file is not required
Browse files Browse the repository at this point in the history
  • Loading branch information
dzc34 committed Apr 12, 2017
1 parent 93bbb0a commit a3dcfba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,14 @@ public class IndexController {
* View containing the form
*/
private String mainPageView;

/**
* piwik analytics key
* default is ''
* can be override in the following file:
* /etc/contrast-finder/contrast-finder.conf
*/
@Value("${piwik_analytics_key}")
@Value("${piwik_analytics_key:}")
private String piwikAnalyticsKey;

@Autowired
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

<bean id="exposedPropertiesConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location" value="file:///etc/contrast-finder/contrast-finder.conf"/>
<property name="ignoreResourceNotFound" value="true" />
<property name="ignoreUnresolvablePlaceholders" value="true" />
</bean>

<import resource="conf/mvc/cf-beans-resolver.xml"/>
Expand Down

0 comments on commit a3dcfba

Please sign in to comment.