BAEL-2719: Skipped conf.properties from packaging

This commit is contained in:
PranayJain
2019-03-11 13:04:19 +05:30
parent 1b48e7943c
commit dcaf1b35a0
4 changed files with 14 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ public class ExternalPropertyConfigurer {
@Bean
public PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
PropertySourcesPlaceholderConfigurer properties = new PropertySourcesPlaceholderConfigurer();
properties.setLocation(new FileSystemResource("src/test/resources/external/conf.properties"));
properties.setLocation(new FileSystemResource("src/main/resources/external/conf.properties"));
properties.setIgnoreResourceNotFound(false);
return properties;
}

View File

@@ -0,0 +1,4 @@
url=jdbc:postgresql://localhost:5432/
username=admin
password=root
spring.main.allow-bean-definition-overriding=true

View File

@@ -1,3 +0,0 @@
url=jdbc:postgresql://localhost:5432/
username=admin
password=root