Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
validator.genesys-pgr.org
Commits
efcdeaf6
Commit
efcdeaf6
authored
Apr 19, 2018
by
Matija Obreza
Browse files
Configure geotools to use the data.folder.path
parent
7ccd1479
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/genesys/taxonomy/checker/web/config/ApplicationConfig.java
View file @
efcdeaf6
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment