Revision 55866
Added by Alessia Bardi almost 5 years ago
ConfigurationTestConfig.java | ||
---|---|---|
17 | 17 |
public MongoDatabase db() throws IOException { |
18 | 18 |
|
19 | 19 |
final Properties p = new Properties(); |
20 |
final ClassPathResource cp = new ClassPathResource("/eu/dnetlib/data/transform/xml/vtd/test.properties");
|
|
20 |
final ClassPathResource cp = new ClassPathResource("test.properties"); |
|
21 | 21 |
try (final InputStream stream = cp.getInputStream()) { |
22 | 22 |
p.load(stream); |
23 | 23 |
} |
... | ... | |
28 | 28 |
return mongo.getDatabase(p.getProperty("mongodb.dbname")); |
29 | 29 |
} |
30 | 30 |
|
31 |
} |
|
31 |
} |
Also available in: Unified diff
journal element can also be added to datasource entities