BAEL-2719: Skipped conf.properties from packaging
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
4
spring-boot-ops/src/main/resources/external/conf.properties
vendored
Normal file
4
spring-boot-ops/src/main/resources/external/conf.properties
vendored
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user