question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bootstrap-xxx.yml is not loaded with spring.profiles.include=xxx

See original GitHub issue

As described at here, bootstrap-xxx.yml is loaded with spring.profiles.active=xxx only. But it does NOT loaded with spring.profiles.include=xxx ( spring.profiles.include comes from Spring Boot).

Sometimes I prefer to use spring.profiles.include to map an other profile. It would become more useful if spring.profiles.include were supported.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:4
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
spencergibbcommented, Jun 14, 2018

@indraneelb1903 generally speaking, if an issue is open, it has not been implemented.

0reactions
yuanjinyongcommented, Jun 24, 2019

@yuanjinyong, the change you suggested is what it was originally and it caused us problems. You can always delegate rather than extend.

originally is following:

if (source instanceof EnumerablePropertySource 

not:

if (source instanceof MapPropertySource
Read more comments on GitHub >

github_iconTop Results From Across the Web

Set profile on bootstrap.yml in spring cloud to target different ...
I find the solution. Basically, we use spring profile to enrich the bootstrap file. For example spring: application: name: myservice cloud: ...
Read more >
Spring Cloud Config
If the YAML files have documents inside them that point to Spring profiles, those are applied with higher precedence (in order of the...
Read more >
Spring Configuration Bootstrap vs Application Properties
properties or an application.yaml file. And, of course, the configuration properties of the bootstrap context load before the configuration ...
Read more >
Spring Cloud - Application Context Services - bush
yml]" (and friends if Spring profiles are active). If you have a bootstrap.yml (or properties) then those properties are used to configure the...
Read more >
It's time to get ready for Spring Boot 3.0
properties or application.yaml , but as of 2.4 spring.profiles.active cannot be used in a specific environment, i.e. application-<profile>.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found