Questions tagged [spring-properties]

166 questions
3
votes
1 answer

Spring Boot: Profiles ignored in PropertySourcesPlaceholderConfigurer loaded file

I have a library that is a Spring Boot project. The library has a library.yml file that contains dev and prod props for its configuration: library.yml --- spring: profiles: active: dev --- spring: profiles: dev env: dev --- spring: …
James
  • 2,876
  • 18
  • 72
  • 116
3
votes
1 answer

What to set for Spring's @PropertySource when using spring.config.location command line arg?

I have defined a @Config class like so: @Config @PropertySource(value = "") public class Foo { ... } I run my program by including the following: --spring.config.location=file:///Users/dev/workspace/application.yml The problem is that I cannot…
njk2015
  • 543
  • 9
  • 20
3
votes
0 answers

loading spring properties files from S3 bucket

We have a application which is running on amazon EC2. we are planning to migrate it to elastic beanstalk environment. our application has two configuration files which stores some endpoints and few other control parameters. currently those are…
3
votes
1 answer

Spring boot ignores "ignoreUnresolvablePlaceholders" = true

I'm having a problem with my Spring Boot application ignoring my ignoreUnresolvablePlaceHolders set to true in my config.xml file. I have these options explicitly set: