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

@ -95,6 +95,15 @@
<build>
<finalName>${project.artifactId}</finalName>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<excludes>
<exclude>**/conf.properties</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>

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