Commit efcdeaf6 authored by Matija Obreza's avatar Matija Obreza
Browse files

Configure geotools to use the data.folder.path

parent 7ccd1479
......@@ -61,6 +61,9 @@ public class ApplicationConfig {
@Value("${taxonomy.data.path}")
public String taxonomyDataPath;
@Value("${data.folder.path}")
public String dataFolderPath;
/**
* Process service.
*
......@@ -104,6 +107,7 @@ public class ApplicationConfig {
@Bean
public LandOrSeaService landOrSeaService() throws MalformedURLException, IOException {
LandOrSeaServiceImpl s = new LandOrSeaServiceImpl();
s.setDataFolderPath(dataFolderPath);
s.afterPropertiesSet();
return s;
}
......@@ -111,6 +115,7 @@ public class ApplicationConfig {
@Bean
public CountryOfOriginService countryOfOriginService() throws MalformedURLException, IOException {
CountryOfOriginServiceImpl s = new CountryOfOriginServiceImpl();
s.setDataFolderPath(dataFolderPath);
s.afterPropertiesSet();
return s;
}
......
Supports Markdown
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