Skip to content

2.0.2 - breaking change in profile activation #13166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
peterdnight opened this issue May 14, 2018 · 1 comment
Closed

2.0.2 - breaking change in profile activation #13166

peterdnight opened this issue May 14, 2018 · 1 comment
Labels
status: duplicate A duplicate of another issue

Comments

@peterdnight
Copy link

peterdnight commented May 14, 2018

Summary:
Change in profile order - introduced in 2.0.2 - means it is no longer possible to override include profiles. Spring boot 2.0.1/.0 - profile includes are very useful for setting up shared behaviors in common libraries used by many spring boot apps. App developers can all rely on common settings from the includes - and then selectively override using their custom profiles and activating them (and overriding).

Suggestions on how to regain this with 2.0.2 would be very welcome.

Setup:

  • sts - new project. Add the following:
spring:
  profiles: 
    active: d,e,f
    include: 
    - a
    - b
    - c

Boot 2.0.1/.0 output:

14-05-2018 10:04:40.973 [restartedMain] INFO  (SpringApplication.java:663) o.springframework.boot.SpringApplication.logStartupProfileInfo 
==> The following profiles are active: a,b,c,d,e,f 

Boot 2.0.2 output:

14-05-2018 10:01:44.711 [restartedMain] INFO  (SpringApplication.java:663) o.springframework.boot.SpringApplication.logStartupProfileInfo 
==> The following profiles are active: d,e,f,a,b,c
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 14, 2018
@wilkinsona
Copy link
Member

Duplicate of #13151.

@wilkinsona wilkinsona added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels May 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants