fixing properties

This commit is contained in:
Antonis Lempesis 2021-10-11 10:46:31 +00:00
parent 275ce34ce4
commit f866810dfd
2 changed files with 11 additions and 9 deletions

View File

@ -10,15 +10,7 @@ import java.io.IOException;
@Configuration @Configuration
@ImportResource("classpath*:/gr/uoa/di/driver/app/springContext-commons.xml") @ImportResource("classpath*:/gr/uoa/di/driver/app/springContext-commons.xml")
@PropertySource("application-compat.properties")
public class Config { public class Config {
@Bean
public PropertySourcesPlaceholderConfigurer getPropertySourcesPlaceholderConfigurer() throws IOException {
PropertySourcesPlaceholderConfigurer ppc = new PropertySourcesPlaceholderConfigurer();
ppc.setLocations((new PathMatchingResourcePatternResolver().getResources("classpath*:/**/springContext-*.properties")));
ppc.setIgnoreResourceNotFound(true);
return ppc;
}
} }

View File

@ -0,0 +1,10 @@
subscription.manager.threads = 2
subscription.manager.timeToLive = 3600
notification.manager.threads = 2
is.registry.creatorId = ${transport.soap.baseAddress}
openaire.db.driverClassName = org.postgresql.Driver
openaire.db.url = jdbc:postgresql://node1.d.openaire.research-infrastructures.eu:5432/dnet_openaire
openaire.db.username = dnet
openaire.db.password = dnetPwd