Browse Source

Inform whether global resource is found or not

Signed-off-by: Pekka Helenius <fincer89@hotmail.com>
v0.0.4-alpha
Pekka Helenius 4 years ago
parent
commit
d1f870d403
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      bookstore/src/main/java/com/fjordtek/bookstore/config/AdditionalPropertiesConfig.java

+ 10
- 0
bookstore/src/main/java/com/fjordtek/bookstore/config/AdditionalPropertiesConfig.java View File

@ -48,6 +48,16 @@ public class AdditionalPropertiesConfig implements EnvironmentPostProcessor {
classPathResources.add(new ClassPathResource("authentication.properties")); classPathResources.add(new ClassPathResource("authentication.properties"));
classPathResources.add(new ClassPathResource("categories.properties")); classPathResources.add(new ClassPathResource("categories.properties"));
for (Resource classPathResource : classPathResources) {
try {
classPathResource.getInputStream();
} catch (IOException e) {
System.err.println(
"Resource " + classPathResource.getFilename() + " not found!"
);
}
}
return classPathResources; return classPathResources;
} }


Loading…
Cancel
Save