BAEL-2719: Skipped conf.properties from packaging
This commit is contained in:
parent
1b48e7943c
commit
dcaf1b35a0
|
@ -95,6 +95,15 @@
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<finalName>${project.artifactId}</finalName>
|
<finalName>${project.artifactId}</finalName>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>src/main/resources</directory>
|
||||||
|
<filtering>true</filtering>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/conf.properties</exclude>
|
||||||
|
</excludes>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
|
|
@ -11,7 +11,7 @@ public class ExternalPropertyConfigurer {
|
||||||
@Bean
|
@Bean
|
||||||
public PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
|
public PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
|
||||||
PropertySourcesPlaceholderConfigurer properties = new 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);
|
properties.setIgnoreResourceNotFound(false);
|
||||||
return properties;
|
return properties;
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
url=jdbc:postgresql://localhost:5432/
|
||||||
|
username=admin
|
||||||
|
password=root
|
||||||
|
spring.main.allow-bean-definition-overriding=true
|
|
@ -1,3 +0,0 @@
|
||||||
url=jdbc:postgresql://localhost:5432/
|
|
||||||
username=admin
|
|
||||||
password=root
|
|
Loading…
Reference in New Issue